[Numpy-discussion] ANN: NumPy 1.9.0 beta release

Sebastian Berg sebastian at sipsolutions.net
Tue Jun 10 07:04:34 EDT 2014


On Di, 2014-06-10 at 11:24 +0100, Nathaniel Smith wrote:
> On 10 Jun 2014 11:15, "Sebastian Berg" <sebastian at sipsolutions.net>
> wrote:
> >
> > On Di, 2014-06-10 at 10:50 +0100, Nathaniel Smith wrote:
> > > On 10 Jun 2014 09:44, "Sebastian Berg"
> <sebastian at sipsolutions.net>
> > > wrote:
> > > > The other error looks a bit different because of the nonzero
> logic,
> > > but
> > > > probably is the same, i.e. also boolean indexing. The last one
> is
> > > the
> > > > change that `arr[[1,2,3,4]] = [1,2]` does not work anymore. A
> > > workaround
> > > > (maybe also for the rest possibly) is `arr.flat[[1,2,3,4]] =
> [1,2]`,
> > > but
> > > > I guess workarounds are not an option with matplotlib, so have
> to
> > > think
> > > > about it.
> > >
> > > If the beta is breaking code then let's put the change off to 1.10
> or
> > > so and raise a deprecation warning in 1.9.
> > >
> >
> > Yes, unfortunately it is a bit more complicating than that.
> 
> Is it impossible to emulate the old arr[[1, 2, 3, 4]] = [1, 2]
> behavior for some reason? Or what do you mean? (I'm not suggesting we
> literally go back to the 1.8 indexing code.)
> 

Yeah, just have to check carefully. Maybe easiest is to just try/except
it in C-code, throw a warning, and (if applicable) try calling the
`arr.flat[...] = ...` code (which still exists).

- Sebastian

> -n
> 
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion at scipy.org
> http://mail.scipy.org/mailman/listinfo/numpy-discussion

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20140610/4869ff61/attachment.sig>


More information about the NumPy-Discussion mailing list