[Numpy-discussion] Is python 3 supported or not?

Sebastian Haase seb.haase at gmail.com
Fri Jan 14 03:47:58 EST 2011


On Fri, Jan 14, 2011 at 9:26 AM, Gael Varoquaux
<gael.varoquaux at normalesup.org> wrote:
> On Thu, Jan 13, 2011 at 10:49:17AM -0800, David Cortesi wrote:
>> As to why I'm using Python 3, it's because I'm starting a new project
>> with no prior dependencies and want the current and future language --
>> which is now TWO FRAKKIN' YEARS OLD! -- but that's a rant for another
>> time.
>
> Oh, you're saying that you'd like to help with building and distributing
> Python 3 binaries of numpy?
>
> G :$

David,
One of the greatest things about Python - I found - is that it doesn't
change every year.
The fact that 3.0 came out 2 years ago does not change the fact that
everyone says they are still committed to support Python 2 for 10 more
years to come. (I hope this is the right number, but it is certainly
is > 5 yrs)
Python 3  is somewhat of a "bigger change" and the various sub-project
communities where reluctant to switch right away.
Don't   confuse the degree of change with "Perl 6" - for what I have
heard, that "change" is rather a new language, ....  while in Python -
as example - 1/2  while now be .5  and you would have to write 1//2 to
get the old results of 0 .

My answer, I gave you few days ago, was kept as general as possible -
since you didn't say at the time what your actual needs/plans were.
The fact that Numpy is now ready for Python 3  does nowhere imply that
everything you might likely want to use with it (SciPy) is also as
stable and well tested with Python 3 as Numpy is.

Finally - let me teach you some python:    (take it with a grain of salt ;-)  )
if you write in Python 2(!!)

from __future__ import division
from __future__ import print_function
from __future__ importabsolute_import

at the beginning of each module you(!) write
you can essentially already use most (many) features of Python 3 in Python 2.
This way you can use all packages as they are available for Python 2
and already  write your new modules "the Python 3 way".

[see also e.g.
http://stackoverflow.com/questions/388069/python-graceful-future-feature-future-import
]

I'm sorry to tell you that this is not the list for flame wars, but
rather the list of the bunch of most helpful people I found.

Cheers,
Sebastian



More information about the NumPy-Discussion mailing list