From: Fernando P. <fpe...@gm...> - 2006-11-09 17:07:44
|
On 11/9/06, Robert Kern <rob...@gm...> wrote: > Fernando Perez wrote: > > I understand why this happens, but I wonder if it should be in any way > > 'fixed' (if that is even feasible without introducing other problems): [...] > > I am sure it will be, to say the least, pretty surprising (and I can > > imagine subtle bugs being caused by this). > > I think we decided long ago that an int32 really is an array of 32-bit integers > and behaves like one. That's precisely why one uses int32 arrays rather than > object arrays. There are algorithms that do need the wraparound, and the Python > int behavior is always available through object arrays. Mkay, fine by me. Novus caveat emptor. Cheers, f |