Re: Odd floor-division corner case

2014-08-14 Thread Ian Kelly
On Thu, Aug 14, 2014 at 11:31 AM, Mark Lawrence wrote: > From http://bugs.python.org/issue22198 > -0.5 // float('inf') > -1.0 Looks like the result is the same for any negative dividend. > What should it be? It's surprising, but I think it's correct. A negative infinitesimal would be less

Odd floor-division corner case

2014-08-14 Thread Mark Lawrence
From http://bugs.python.org/issue22198 >>> -0.5 // float('inf') -1.0 What should it be? -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list