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

Charles R Harris charlesr.harris at gmail.com
Sat Aug 15 18:58:11 EDT 2009


2009/8/15 Stéfan van der Walt <stefan at sun.ac.za>

> 2009/8/15 Emmanuelle Gouillart <emmanuelle.gouillart at normalesup.org>:
> >> At this point in this thread, I've reached the "strong opinion" that I'm
> +1 w/ Charles: speaking as someone who's gung-ho to make the docstrings as
> pedagogically useful as possible, I feel code-docstring consistency trumps
> this - IMO, the docstrings should not be be changed prior to the code itself
> being changed.
> >
> > OK, you can revert the changes very easily as I paid attention to save
> > versions including only the modifications of print statements.
>
> Don't revert those changes.  Using "print" as a function is more
> consistent in style (one of the reasons it's been changed in 3.0).
> Doing it now saves us a lot of trouble later on.
>

It doesn't save us trouble, 2to3 will make the needed changes, nor is it
consistent in style IMHO. As to ipython, I would call the behaviour some are
seeing a bug for python versions < 3.0.

Chuck
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/scipy-dev/attachments/20090815/d8d70f07/attachment.html>


More information about the SciPy-Dev mailing list