[Numpy-discussion] Changes in PyArray_FromAny between 1.5.x and 1.6.x
Wed Jun 6 01:21:34 CDT 2012
On Wed, Jun 6, 2012 at 5:11 AM, Travis Oliphant <email@example.com> wrote:
> During the original discussion, Gael pointed out that the changes would
> probably break some code (which might need to be cleaned up but still). I
> think it was underestimated how quickly people would upgrade and see the
> changes and therefore be able to report problems.
> You're making the same mistake I made above. This error occurs in 1.6.x,
so before the proposed change to casting='same_kind'.
That's not actually the default right now by the way, in both 1.6.2 and
current master the default is 'safe'.
In : np.__version__
In : print np.can_cast.__doc__
can_cast(from, totype, casting = 'safe')
We are talking about a 1.7 release, but there are still people who have not
> upgraded their code to use 1.6 (when some of the big changes occurred).
> This should probably guide our view of how long it takes to migrate
> behavior in NumPy and minimize migration difficulties for users.
> On Jun 5, 2012, at 2:01 PM, Zachary Pincus wrote:
> >>> On Tue, Jun 5, 2012 at 8:41 PM, Zachary Pincus <
> >>> wrote:
> >>>>> There is a fine line here. We do need to make people clean up lax
> >>>>> in order to improve numpy, but hopefully we can keep the cleanups
> >>>>> reasonable.
> >>>> Oh agreed. Somehow, though, I was surprised by this, even though I
> >>>> tabs on the numpy lists -- at no point did it become clear that "big
> >>>> in how arrays get constructed and typecast are ahead that may require
> >>>> fixes". That was my main point, but probably a PEBCAK issue more than
> >>>> anything.
> >>> It was fairly extensively discussed when introduced,
> >>> http://thread.gmane.org/gmane.comp.python.numeric.general/44206, and
> >>> at some later point.
> >> Those are the not-yet-finalized changes in 1.7; Zachary (I think) is
> >> talking about problems upgrading from ~1.5 to 1.6.
> > Yes, unless I'm wrong I experienced these problems from 1.5.something to
> 1.6.1. I didn't take notes as it was in the middle of a deadline-crunch so
> I just fixed the code and moved on (long, stupid story about why the
> upgrade before a deadline...). It's just that the issues mentioned above
> seem to have hit me too and I wanted to mention that. But unhelpfully, I
> think, without code, and now I've hijacked this thread! Sorry.
> > Zach
> > _______________________________________________
> > NumPy-Discussion mailing list
> > NumPy-Discussion@scipy.org
> > http://mail.scipy.org/mailman/listinfo/numpy-discussion
> NumPy-Discussion mailing list
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the NumPy-Discussion