[Biopython-dev] Post Biopython 1.62 release, clean-up after dropping Python 2.5
Peter Cock
p.j.a.cock at googlemail.com
Thu Aug 29 13:35:16 EDT 2013
On Thursday, August 29, 2013, Lenna Peterson wrote:
>
>
> On Thu, Aug 29, 2013 at 12:33 PM, Peter Cock <p.j.a.cock at googlemail.com<javascript:_e({}, 'cvml', '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?
>
My motivation is a step towards a single codebase for both
Python 2 and Python 3 without needing 2to3, see:
http://lists.open-bio.org/pipermail/biopython-dev/2013-May/010633.html
http://www.slideshare.net/pjacock/biopython-update-bosc2013/
Peter
More information about the Biopython-dev
mailing list