[Biopython-dev] PEP8 lower case module names?

Peter Cock p.j.a.cock at googlemail.com
Fri Oct 26 12:43:36 UTC 2012


Arg - occidentally tabbed to the send button while trying to indent
sample code...

On Fri, Oct 26, 2012 at 1:42 PM, Peter Cock <p.j.a.cock at googlemail.com> wrote:
>
> Perhaps a blog post & email to the announcement mailing list
> soliciting feedback on this proposal is the best way forward,
> perhaps with a web-survey form? e.g.
>
> (1) Keep the namespace as 'Bio'
>
> (2) Keep the namespace as 'Bio' on Python 2,
> but adopt all lowercase module names on Python 3.
>
> (3) Move to a new all lowercase namespace like 'biopy'
> (anything except 'bio'), allowing the current 'Bio' namespace
> to continue to be available as well during a transition period.
>
> And the most disruptive option:
>
> (4) Switch to an all lowercase namespace 'bio', which
> cannot in general co-exist with the old 'Bio' namespace
> (perhaps bumping the version number to 2.0.0?). This
> would break legacy scripts, which would need to be
> updated, e.g.:
>
> from Bio.SeqRecord import SeqRecord
> from Bio import SeqIO
>
> could be replaced by:


try:
     #Biopython 1.x uses Bio.*
     from Bio.SeqRecord import SeqRecord
     from Bio import SeqIO
except ImportError:

>
>
>
>
> This would mean under Windows and most Mac install
> you cannot have both
> you (and all other users of the machine) m
> must be remove
>
> Regards,
>
> Peter



More information about the Biopython-dev mailing list