[SciPy-dev] change print statements to print functions in docstrings

Gael Varoquaux gael.varoquaux@normalesup....
Mon Aug 17 09:26:26 CDT 2009

On Mon, Aug 17, 2009 at 08:36:07AM -0400, Alan G Isaac wrote:
> On 8/17/2009 2:46 AM Gael Varoquaux apparently wrote:
> > OK, I am confused by the fact that __builtins__ as a print function that
> > matches the Python 3.x print function. You can see this doing 
> > '$ pydoc __builtin__.print' and I believe this is what is confusing
> > IPython too. What you are saying is that that function does not kick in
> > if we don't do the __future__ import, right?

> http://docs.python.org/whatsnew/2.6.html#pep-3105-print-as-a-function

Thank you Alan. I should have refered to that document earlier, it is
indeed quite clear.


More information about the Scipy-dev mailing list