Message99206
Python 2.6.4
On my system which is solaris 8/sparc, float("INFI") returns inf instead of raising ValueError, both 32 and 64-bit. (since it's case-insensitive it applies to any upper/lower combination of letters).
This issue breaks test_float regression test which has a test for that value and it expects ValueError.
Doing some research and debugging showed me that strtod(const char *str, char **endptr) function behaves differently on solaris 8 than linux.
On solaris it stores \0 in **endptr meaning that it processed the string completely - and that's the reason why python doesn't raise ValueError.
On linux, strtod() stores 'I' in **endptr, and it results the ValueError.
With python 2.6.1 there's no such issue. |
|
Date |
User |
Action |
Args |
2010-02-11 13:40:32 | csernazs | set | recipients:
+ csernazs |
2010-02-11 13:40:32 | csernazs | set | messageid: <1265895632.82.0.0740289647812.issue7906@psf.upfronthosting.co.za> |
2010-02-11 13:40:31 | csernazs | link | issue7906 messages |
2010-02-11 13:40:29 | csernazs | create | |
|