Re: [Numpy-discussion] non-integer index misfeature?

2012-12-12 Thread Sebastian Berg
On Wed, 2012-12-12 at 20:48 +, Nathaniel Smith wrote: > On Wed, Dec 12, 2012 at 8:20 PM, Ralf Gommers wrote: > > > > On Tue, Dec 11, 2012 at 5:44 PM, Neal Becker wrote: > >> > >> I think it's a misfeature that a floating point is silently accepted as an > >> index. I would prefer a warning f

Re: [Numpy-discussion] non-integer index misfeature?

2012-12-12 Thread Nathaniel Smith
On Wed, Dec 12, 2012 at 9:09 PM, David Warde-Farley wrote: > On Wed, Dec 12, 2012 at 3:20 PM, Ralf Gommers wrote: >> For numpy indexing this may not be appropriate though; checking every index >> value used could slow things down and/or be quite disruptive. > > For array fancy indices, a dtype ch

Re: [Numpy-discussion] non-integer index misfeature?

2012-12-12 Thread David Warde-Farley
On Wed, Dec 12, 2012 at 3:20 PM, Ralf Gommers wrote: > For numpy indexing this may not be appropriate though; checking every index > value used could slow things down and/or be quite disruptive. For array fancy indices, a dtype check on the entire array would suffice. For lists and scalars, I dou

Re: [Numpy-discussion] non-integer index misfeature?

2012-12-12 Thread Nathaniel Smith
On Wed, Dec 12, 2012 at 8:20 PM, Ralf Gommers wrote: > > On Tue, Dec 11, 2012 at 5:44 PM, Neal Becker wrote: >> >> I think it's a misfeature that a floating point is silently accepted as an >> index. I would prefer a warning for: >> >> bins = np.arange (...) >> >> for b in bins: >> ... >> w[b]

Re: [Numpy-discussion] non-integer index misfeature?

2012-12-12 Thread Ralf Gommers
On Tue, Dec 11, 2012 at 5:44 PM, Neal Becker wrote: > I think it's a misfeature that a floating point is silently accepted as an > index. I would prefer a warning for: > > bins = np.arange (...) > > for b in bins: > ... > w[b] = blah > > when I meant: > > for ib,b in enumerate (bins): > w[ib

[Numpy-discussion] unsubscribe

2012-12-12 Thread ioannis syntychakis
___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

[Numpy-discussion] IPython receives $1.15 million from Alfred P. Sloan Foundation

2012-12-12 Thread Jason Grout
Hi everyone, Just FYI, IPython just received $1.15 million in funding from the Alfred P. Sloan Foundation to support development over the next 2 years. Fernando talks more about this in his post to the IPython mailing list: http://mail.scipy.org/pipermail/ipython-dev/2012-December/010799.html