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

2009-01-12 Thread Pauli Virtanen
Wed, 31 Dec 2008 13:11:02 +0900, David Cournapeau wrote: [clip] > Thank you for working on this, Pauli. The problem on windows may not be > specific to windows: the difference really is whether the formatting is > done by python or the C runtime. It just happens that on Linux and Mac > OS X, the st

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

2008-12-30 Thread David Cournapeau
On Wed, Dec 31, 2008 at 11:28 AM, Pauli Virtanen wrote: > Mon, 29 Dec 2008 13:38:12 +0900, David Cournapeau wrote: > [clip] >> 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

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

2008-12-30 Thread David Cournapeau
On Wed, Dec 31, 2008 at 3:41 AM, Lenard Lindstrom wrote: > David Cournapeau wrote: >> The thing is since I don't understand what happens in the print '%f' >> case, I don't know how to clean it up, if it is at all possible. But in >> anyway, it means that with my changes, we are not worse than pyth

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

2008-12-30 Thread Pauli Virtanen
Mon, 29 Dec 2008 13:38:12 +0900, David Cournapeau wrote: [clip] > 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 dou

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

2008-12-30 Thread Lenard Lindstrom
David Cournapeau wrote: > The thing is since I don't understand what happens in the print '%f' > case, I don't know how to clean it up, if it is at all possible. But in > anyway, it means that with my changes, we are not worse than python > itself, and I think we are better than before, > > Just

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

2008-12-29 Thread David Cournapeau
Charles R Harris wrote: > > > > Yes, I meant that I did not understand the code path in that case. I > realize that I don't know how to get the (C) call graph between two > code points in python, that would be useful. Where are you dtrace on > linux when I need you :) > > > I'm not

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

2008-12-29 Thread Charles R Harris
On Mon, Dec 29, 2008 at 8:12 PM, David Cournapeau wrote: > On Mon, Dec 29, 2008 at 4:36 PM, Charles R Harris > wrote: > > > > > > On Sun, Dec 28, 2008 at 10:35 PM, David Cournapeau > > wrote: > >> > >> Charles R Harris wrote: > >> > > >> > > >> > > >> > I put my yesterday work in the fix_flo

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

2008-12-29 Thread David Cournapeau
On Mon, Dec 29, 2008 at 4:36 PM, Charles R Harris wrote: > > > On Sun, Dec 28, 2008 at 10:35 PM, David Cournapeau > wrote: >> >> Charles R Harris wrote: >> > >> > >> > >> > I put my yesterday work in the fix_float_format branch: >> > - it fixes the locale issue >> > - it fixes the l

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] formatting issues, locale and co

2008-12-27 Thread Charles R Harris
On Sat, Dec 27, 2008 at 11:55 PM, David Cournapeau < da...@ar.media.kyoto-u.ac.jp> wrote: > Charles R Harris wrote: > > > > > > On Sat, Dec 27, 2008 at 11:46 PM, Robert Kern > > wrote: > > > > On Sun, Dec 28, 2008 at 01:38, Charles R Harris > > mailto:charles

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

2008-12-27 Thread Charles R Harris
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 Python-parseable. > > > > It looks like I was wrong in my analysis of the problem: I thou

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

2008-12-27 Thread David Cournapeau
Charles R Harris wrote: > > > On Sat, Dec 27, 2008 at 11:46 PM, Robert Kern > wrote: > > On Sun, Dec 28, 2008 at 01:38, Charles R Harris > mailto:charlesr.har...@gmail.com>> wrote: > > > > On Sat, Dec 27, 2008 at 10:27 PM, David Cournapeau > >

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

2008-12-27 Thread Charles R Harris
On Sat, Dec 27, 2008 at 11:46 PM, Robert Kern wrote: > On Sun, Dec 28, 2008 at 01:38, Charles R Harris > wrote: > > > > On Sat, Dec 27, 2008 at 10:27 PM, David Cournapeau > > wrote: > >> > >> Hi, > >> > >>While looking at the last failures of numpy trunk on windows for > >> python 2.5 and 2

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

2008-12-27 Thread David Cournapeau
Robert Kern wrote: > > We should not support locales. The string representations of these > elements should be Python-parseable. > It looks like I was wrong in my analysis of the problem: I thought I was using the most recent implementation of PyOS_* functions in my test codes, but the ones in

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

2008-12-27 Thread Robert Kern
On Sun, Dec 28, 2008 at 01:38, Charles R Harris wrote: > > On Sat, Dec 27, 2008 at 10:27 PM, David Cournapeau > wrote: >> >> Hi, >> >>While looking at the last failures of numpy trunk on windows for >> python 2.5 and 2.6, I got into floating point number formatting issues; >> I got deeper and

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

2008-12-27 Thread Charles R Harris
On Sat, Dec 27, 2008 at 10:27 PM, David Cournapeau < da...@ar.media.kyoto-u.ac.jp> wrote: > Hi, > >While looking at the last failures of numpy trunk on windows for > python 2.5 and 2.6, I got into floating point number formatting issues; > I got deeper and deeper, and now I am lost. We have se

[Numpy-discussion] formatting issues, locale and co

2008-12-27 Thread David Cournapeau
Hi, While looking at the last failures of numpy trunk on windows for python 2.5 and 2.6, I got into floating point number formatting issues; I got deeper and deeper, and now I am lost. We have several problems: - we are not consistent between platforms, nor are we consistent with python