[Biopython-dev] Optimization of PDBParser and friends
Peter Cock
p.j.a.cock at googlemail.com
Thu Sep 6 21:03:22 EDT 2012
On Thu, Sep 6, 2012 at 2:48 PM, João Rodrigues <anaryin at gmail.com> wrote:
> Ok, thanks.
>
> The modules are littered with set/get methods and adding DeprecationWarning
> to all of them might be a bit too much.. Instead, should we add one single
> warning at the top of the PDBParser, since this is the only obligatory
> module for Bio.PDB so that everyone gets the warning message once and once
> only? Otherwise I can imagine several warnings popping up everywhere..
If you use the exact same message, then I think you'll only see the
warning once. Try it with a couple of the get/set methods to confirm.
Having the warning happen even if you don't use the get/set seems
wrong.
Peter
More information about the Biopython-dev
mailing list