[Numpy-discussion] integer division rule changed

Charles R Harris charlesr.harris@gmail....
Mon Mar 22 18:54:16 CDT 2010


On Mon, Mar 22, 2010 at 4:11 PM, Alan G Isaac <aisaac@american.edu> wrote:

> On 3/13/2010 8:57 PM, Charles R Harris wrote:
> > I suspect the change was made, whenever that was, in order to conform to
> > python.
>
> So is there an actual polcy? When C99 behavior
> and Python behavior differ, will NumPy follow
> Python as a *rule*?
>
>
I don't know if it is official policy, but in python3.x integer division
becomes true division and the old behaviour has to be gotten by using //.
This will no doubt cause some problems...

Chuck
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/numpy-discussion/attachments/20100322/636755c9/attachment.html 


More information about the NumPy-Discussion mailing list