[Biopython-dev] Post Biopython 1.62 release, clean-up after dropping Python 2.5
superbobry at gmail.com
Fri Aug 30 12:58:31 UTC 2013
> (8) Excluding doctests and the Tutorial, use print function
> rather than print statement. e.g. replace this:
Unfortunately we cannot exclude doctests, because 'from __future__' import
is module wide, thus the 'doctest.testmod()' will raise a SyntaxError on
docstrings with print statement.
On Fri, Aug 30, 2013 at 12:44 AM, Peter Cock <p.j.a.cock at googlemail.com>wrote:
> On Thu, Aug 29, 2013 at 9:34 PM, Sergei Lebedev <superbobry at gmail.com>
> > 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
More information about the Biopython-dev