campaining for PEP 238 - integer division

John Roth newsgroups at jhrothjr.com
Sat Apr 17 21:38:09 EDT 2004


"Sebastian Haase" <seb_haase at yahoo.com> wrote in message
news:f445a2fe.0404171659.60992eff at posting.google.com...
> Hi,
> I'm interested in having more people in our lab using numarray/NumPy
> instead of MatLab. For that I have put together a couple useful
> modules and written many myself. But then I got reminded of a new /
> upcoming feature of Python:
> "2/3 == 1.5"  AKA PEP 238.
> I'm very interested in putting lots of
> "from __future__ import division"
> lines into my code especially since numarray (the new NumPy) now
> supports it.
>
> QUESTION: Is this new/upcoming feature of Python mentioned enough ?
> Like in the Python tutorial  or mailing lists ...
> A google groups search for "python 238 integer OR division"  was
> giving me one relevant result from Jan2004, another one from May2003,
> all else even older !!!

According to the current version of the PEP, that change won't
happen until sometime in the misty future with version 3.0. That
release is scheduled to break lots of things, not just this one.

The PEP contains recommendations for cushioning the shock.

John Roth

>
> Cheers,
> Sebastian Haase





More information about the Python-list mailing list