[SciPy-dev] change print statements to print functions in docstrings
Emmanuelle Gouillart
emmanuelle.gouillart@normalesup....
Sat Aug 15 10:54:56 CDT 2009
On Sat, Aug 15, 2009 at 09:37:59AM -0600, Charles R Harris wrote:
> In [6]: print(1,2,3)
> (1, 2, 3)
>
Right, so I'm not modifying the print statement with commas, to be sure
that we get what's expected with Python 2.x. Having the statement as well
as the function in the doc is not very satisfying, but these changes may
encourage people to use print(). As Gaël said, this is mostly for
pedagogical purpose.
BTW, with my Ipython (0.11.bzr.r1205),
In [1]: print 1, 2, 3
------> print(1, 2, 3)
(1, 2, 3)
Emmanuelle
More information about the Scipy-dev
mailing list