[Biopython-dev] Optimization of PDBParser and friends

Peter Cock p.j.a.cock at googlemail.com
Thu Sep 6 07:21:16 UTC 2012


On Thu, Sep 6, 2012 at 6:52 AM, João Rodrigues <anaryin at gmail.com> wrote:
>
>> It would also look less like Java code ;)
>>
>> I like this plan - but initially define and document the new properties,
>> and deprecate the old get/set properties. Without that you'll break
>> almost every PDB using script out there.
>
> How do I deprecate the old ones? Is there a DeprecationWarning or so?
>

Yes, we use Bio.BiopythonDeprecationWarning rather than the
default DeprecationWarning because the later is now silent
by default. Grep the code for example usage, see also:
http://biopython.org/wiki/Deprecation_policy

Regards,

Peter




More information about the Biopython-dev mailing list