[Numpy-discussion] Python 3 compatible examples
pav at iki.fi
Fri Jun 1 16:22:20 EDT 2018
pe, 2018-06-01 kello 14:17 -0600, Charles R Harris kirjoitti:
> This post is prompted by this PR <https://github.com/numpy/numpy/pull
> It would be good to come up with a timeline and plan for rewriting
> examples to be Python 3 compatible. When we do so, we should also
> make it
> assumed that `from __future__ import print_function` has been
> executed when
> the examples are executed in Python 2.7. Might want to include
> in that future import as well.
> Anyway, wanted to raise the subject. Thoughts?
For Scipy, we converted the examples in the documentation to Python 3,
and have essentially ignored Python 2 compatibility. So far, I remember
no complaints about it.
More information about the NumPy-Discussion