Re: [Numpy-discussion] Numpy 'None' comparison FutureWarning

2015-01-31 Thread Benjamin Root
Finally got off my butt and hunted down an example, and it was right under my nose in mplot3d. lib/python2.7/site-packages/mpl_toolkits/mplot3d/axes3d.py:1094: FutureWarning: comparison to `None` will result in an elementwise object comparison in the future. if self.button_pressed in

Re: [Numpy-discussion] Views of a different dtype

2015-01-31 Thread Sebastian Berg
On Fr, 2015-01-30 at 19:52 -0800, Jaime Fernández del Río wrote: On Thu, Jan 29, 2015 at 8:57 AM, Nathaniel Smith n...@pobox.com wrote: On Thu, Jan 29, 2015 at 12:56 AM, Jaime Fernández del Río jaime.f...@gmail.com wrote: [...] snip Could we make

[Numpy-discussion] missing FloatingPointError for numpy on cygwin64

2015-01-31 Thread Sebastien Gouezel
Dear all, I tried to use numpy (version 1.9.1, installed by `pip install numpy`) on cygwin64. I encountered the following weird bug: import numpy with numpy.errstate(all='raise'): ...print 1/float64(0.0) inf I was expecting a FloatingPointError, but it didn't show up. Curiously, with

Re: [Numpy-discussion] Numpy 'None' comparison FutureWarning

2015-01-31 Thread Sebastian Berg
On Sa, 2015-01-31 at 09:02 -0500, Benjamin Root wrote: Finally got off my butt and hunted down an example, and it was right under my nose in mplot3d. lib/python2.7/site-packages/mpl_toolkits/mplot3d/axes3d.py:1094: FutureWarning: comparison to `None` will result in an elementwise object

Re: [Numpy-discussion] missing FloatingPointError for numpy on cygwin64

2015-01-31 Thread David Cournapeau
Hi Sebastian, I think you may be one of the first person to report using cygwin 64. I think it makes sense to support that platform as it is becoming more common. Could you report the value of `sys.platform` on cygwin64 ? The first place I would look for cygwin-related FPU issues is there: