[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) x

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 li...@informa.tiker.net 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

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 li...@informa.tiker.net 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

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 li...@informa.tiker.net wrote: On Montag 29 Dezember 2008, Robert Kern wrote: On Sun, Dec 28, 2008 at 19:23, Andreas Klöckner li...@informa.tiker.net wrote: Hi all, I don't think

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 li...@informa.tiker.net wrote: On Montag 29 Dezember 2008, Robert Kern wrote: On Sun, Dec 28, 2008 at 20:38, Andreas Klöckner li...@informa.tiker.net wrote: On Montag 29 Dezember 2008, Robert Kern wrote: On Sun, Dec 28, 2008 at 19:23, Andreas

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 charlesr.har...@gmail.com wrote: On Sat, Dec 27, 2008 at 11:40 PM, David Cournapeau da...@ar.media.kyoto-u.ac.jp wrote: Robert Kern wrote: We should not support locales. The string representations of these elements should be

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 courn...@gmail.comwrote: On Sun, Dec 28, 2008 at 4:12 PM, Charles R Harris charlesr.har...@gmail.com wrote: On Sat, Dec 27, 2008 at 11:40 PM, David Cournapeau da...@ar.media.kyoto-u.ac.jp wrote: Robert Kern wrote: We should not

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 instead -

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 also fixes some