[Biopython-dev] DeprecationWarnings

Peter biopython at maubp.freeserve.co.uk
Sat Sep 4 12:03:28 UTC 2010


On Sat, Sep 4, 2010 at 6:21 AM, Michiel de Hoon <mjldehoon at yahoo.com> wrote:
>
> On Fri, 9/3/10, Peter <biopython at maubp.freeserve.co.uk> wrote:
>>
>> Sounds good, maybe Bio.BioDeprecationWarning would do as a
>> name?
>
> I would prefer Bio.DeprecationWarning instead of Bio.BioDeprecationWarning.

But then if we do "from Bio import DeprecationWarning" is would
mask the built in DeprecationWarning - which could cause
confusion?

> [for obsolete code:]
>> Instead we can use the built in
>> PendingDeprecationWarning (which is silent by default):
>
> OK, let's use that then for obsolete code.

OK

Peter



More information about the Biopython-dev mailing list