[SciPy-dev] change print statements to print functions in docstrings
Sat Aug 15 11:24:48 CDT 2009
On Sat, Aug 15, 2009 at 11:37 AM, Charles R Harris <
> On Sat, Aug 15, 2009 at 7:59 AM, Emmanuelle Gouillart <
> email@example.com> wrote:
>> I've started changing the print statements in numpy's doctrings
>> to print functions on the doc wiki, to meet the requirements of Python
>> 3.0. Any objections or comments?
> This can lead to some oddities:
> In : print(1,2,3)
> (1, 2, 3)
> I think it might be better to find out what 2to3 does in these
> circumstances first.
>From the 2to3 docs:
"2to3 can also refactor doctests. To enable this mode, use the -d
Note that *only* doctests will be refactored. This also doesn’t require the
module to be valid Python. For example, doctest like examples in a reST
document could also be refactored with this option."
Anyway, the change can also be made with a good editor and search-replace. I
am all for changing this, my point was simply that the doc wiki is not the
best tool to make changes like these (not that I don't love the doc wiki,
> Scipy-dev mailing list
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Scipy-dev