Re: [Python-Dev] string to float containing whitespace

2009-04-29 Thread Martin v. Löwis
s...@pobox.com wrote: > Someone please tell me I'm not going mad. I could have sworn that once upon > a time attempting to convert numeric strings to ints or floats if they > contained whitespace raised an exception. As far back as 1.5.2 it appears > that float(), string.atof() and string.atoi()

Re: [Python-Dev] string to float containing whitespace

2009-04-29 Thread skip
Amaury> You are maybe referring to the Decimal constructor: Amaury>decimal.Decimal(" 123") Amaury> fails with 2.5, but works with 2.6. (issue 1780) Highly unlikely, since my recollection is from way back in the early days. Also, I have yet to actually use the decimal module. :-/

Re: [Python-Dev] string to float containing whitespace

2009-04-29 Thread Amaury Forgeot d'Arc
Hi, 2009/4/29 : > Someone please tell me I'm not going mad.  I could have sworn that once upon > a time attempting to convert numeric strings to ints or floats if they > contained whitespace raised an exception.  As far back as 1.5.2 it appears > that float(), string.atof() and string.atoi() allo

[Python-Dev] string to float containing whitespace

2009-04-29 Thread skip
Someone please tell me I'm not going mad. I could have sworn that once upon a time attempting to convert numeric strings to ints or floats if they contained whitespace raised an exception. As far back as 1.5.2 it appears that float(), string.atof() and string.atoi() allow whitespace. Maybe I'm t