As bioinformatics and computational biology are developing quickly, some of previously developed Biopython modules may no longer be relevant in today’s world. To keep the code base clean, we aim to deprecate and remove such code from Biopython, while avoiding any nasty surprises for users who may be relying on older code.
We keep a plain text file in the Biopython source code to record these
changes, named
DEPRECATED
.
This is the current policy for deprecating and removing code from Biopython:
BiopythonDeprecationWarning
to the
code (Python’s DeprecationWarning
is silent by default):import warnings
from Bio import BiopythonDeprecationWarning
warnings.warn("Bio.SomeModule has been deprecated, and we intend to remove it"
" in a future release of Biopython. Please use the SomeOtherModule"
" instead, as described in the Tutorial. If you would like to"
" continue using Bio.SomeModule, please contact the Biopython"
" developers via the mailing list or GitHub.",
BiopythonDeprecationWarning)
See here for the discussion on the mailing list:
http://lists.open-bio.org/pipermail/biopython-dev/2008-November/004920.html