[Biopython-dev] Post Biopython 1.62 release, clean-up after dropping Python 2.5

Lenna Peterson arklenna at gmail.com
Thu Aug 29 17:18:16 UTC 2013


On Thu, Aug 29, 2013 at 12:33 PM, Peter Cock <p.j.a.cock at googlemail.com>wrote:

>
> Here's another fairly easy task for another new volunteer?:
>
> (8) Excluding doctests and the Tutorial, use print function
> rather than print statement. e.g. replace this:
>
> print variable1, variable2
>
> with this:
>
> from __future__ import print_function
> ...
> print(variable1, variable2)
>
> Note that I am deliberately not suggesting we switch the
> user visible examples on our documentation yet - that
> deserves some discussion first.
>
>
>From the docs:  "When using the 2to3 source-to-source conversion tool, all
print statements are automatically converted to print() function calls, so
this is mostly a non-issue for larger projects."

http://docs.python.org/3.0/whatsnew/3.0.html#print-is-a-function

Which suggests either doing it with the tool or just waiting until the full
3.0 changeover?



More information about the Biopython-dev mailing list