This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author csernazs
Recipients csernazs
Date 2010-02-11.13:40:29
SpamBayes Score 1.9448332e-11
Marked as misclassified No
Message-id <1265895632.82.0.0740289647812.issue7906@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2010-02-11 13:40:32csernazssetrecipients: + csernazs
2010-02-11 13:40:32csernazssetmessageid: <1265895632.82.0.0740289647812.issue7906@psf.upfronthosting.co.za>
2010-02-11 13:40:31csernazslinkissue7906 messages
2010-02-11 13:40:29csernazscreate