[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 20:44:49 UTC 2013


On Thu, Aug 29, 2013 at 9:34 PM, Sergei Lebedev <superbobry at gmail.com> wrote:
> On Thu, Aug 29, 2013 at 8: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.
>
>
> So the task is to remove print statement from the code only, right?

Replacing them with print functions, and testing this
worked OK under both Python 2 and Python 3, yes :)

> I think I can do this, should I use a separate branch?
>
> Sergei

Yes, I would certainly recommend keeping the
default 'master' branch as a copy of the official one,
and creating a new 'print-function' branch (or whatever
name you prefer) for this work.

We probably need to improve this wiki page - so any
comments about what is unclear would be great (on
a new email thread): http://biopython.org/wiki/GitUsage

Thanks,

Peter



More information about the Biopython-dev mailing list