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

Alan G Isaac aisaac at american.edu
Mon Aug 17 08:36:07 EDT 2009


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

fwiw,
Alan Isaac




More information about the SciPy-Dev mailing list