Re: [Numpy-discussion] formatting issues, locale and co

2008-12-28 Thread Charles R Harris
On Sun, Dec 28, 2008 at 10:35 PM, David Cournapeau < da...@ar.media.kyoto-u.ac.jp> wrote: > Charles R Harris wrote: > > > > > > > > I put my yesterday work in the fix_float_format branch: > > - it fixes the locale issue > > - it fixes the long double issue on windows. > > - it a

Re: [Numpy-discussion] formatting issues, locale and co

2008-12-28 Thread David Cournapeau
Charles R Harris wrote: > > > > I put my yesterday work in the fix_float_format branch: > - it fixes the locale issue > - it fixes the long double issue on windows. > - it also fixes some tests (we were not testing single precision > formatting but twice double precision inst

Re: [Numpy-discussion] formatting issues, locale and co

2008-12-28 Thread Charles R Harris
On Sun, Dec 28, 2008 at 9:38 PM, David Cournapeau wrote: > On Sun, Dec 28, 2008 at 4:12 PM, Charles R Harris > wrote: > > > > > > On Sat, Dec 27, 2008 at 11:40 PM, David Cournapeau > > wrote: > >> > >> Robert Kern wrote: > >> > > >> > We should not support locales. The string representations of

Re: [Numpy-discussion] formatting issues, locale and co

2008-12-28 Thread David Cournapeau
On Sun, Dec 28, 2008 at 4:12 PM, Charles R Harris wrote: > > > On Sat, Dec 27, 2008 at 11:40 PM, David Cournapeau > wrote: >> >> Robert Kern wrote: >> > >> > We should not support locales. The string representations of these >> > elements should be Python-parseable. >> > >> >> It looks like I was

Re: [Numpy-discussion] Should object arrays have a buffer interface?

2008-12-28 Thread Robert Kern
On Sun, Dec 28, 2008 at 21:52, Andreas Klöckner wrote: > On Montag 29 Dezember 2008, Robert Kern wrote: >> On Sun, Dec 28, 2008 at 20:38, Andreas Klöckner > wrote: >> > On Montag 29 Dezember 2008, Robert Kern wrote: >> >> On Sun, Dec 28, 2008 at 19:23, Andreas Klöckner >> >> >> > >> > wrote: >>

Re: [Numpy-discussion] Should object arrays have a buffer interface?

2008-12-28 Thread Andreas Klöckner
On Montag 29 Dezember 2008, Robert Kern wrote: > On Sun, Dec 28, 2008 at 20:38, Andreas Klöckner wrote: > > On Montag 29 Dezember 2008, Robert Kern wrote: > >> On Sun, Dec 28, 2008 at 19:23, Andreas Klöckner > >> > > > > wrote: > >> > Hi all, > >> > > >> > I don't think PyObject pointers should

Re: [Numpy-discussion] Should object arrays have a buffer interface?

2008-12-28 Thread Robert Kern
On Sun, Dec 28, 2008 at 20:38, Andreas Klöckner wrote: > On Montag 29 Dezember 2008, Robert Kern wrote: >> On Sun, Dec 28, 2008 at 19:23, Andreas Klöckner > wrote: >> > Hi all, >> > >> > I don't think PyObject pointers should be accessible via the buffer >> > interface. I'd throw an error, but ma

Re: [Numpy-discussion] Should object arrays have a buffer interface?

2008-12-28 Thread Andreas Klöckner
On Montag 29 Dezember 2008, Robert Kern wrote: > On Sun, Dec 28, 2008 at 19:23, Andreas Klöckner wrote: > > Hi all, > > > > I don't think PyObject pointers should be accessible via the buffer > > interface. I'd throw an error, but maybe a (silenceable) warning would > > do. Would have saved me so

Re: [Numpy-discussion] Should object arrays have a buffer interface?

2008-12-28 Thread Robert Kern
On Sun, Dec 28, 2008 at 19:23, Andreas Klöckner wrote: > Hi all, > > I don't think PyObject pointers should be accessible via the buffer interface. > I'd throw an error, but maybe a (silenceable) warning would do. Would have > saved me some bug-hunting. Can you describe in more detail what proble

[Numpy-discussion] Should object arrays have a buffer interface?

2008-12-28 Thread Andreas Klöckner
Hi all, I don't think PyObject pointers should be accessible via the buffer interface. I'd throw an error, but maybe a (silenceable) warning would do. Would have saved me some bug-hunting. >>> import numpy >>> numpy.array([55, (33,)], dtype=object) >>> x = numpy.array([55, (33,)], dtype=object)