[SciPy-dev] change print statements to print functions in docstrings
Charles R Harris
Sat Aug 15 17:58:11 CDT 2009
2009/8/15 Stéfan van der Walt <email@example.com>
> 2009/8/15 Emmanuelle Gouillart <firstname.lastname@example.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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Scipy-dev