[issue5981] float.fromhex bugs

2009-05-11 Thread Mark Dickinson
Mark Dickinson added the comment: Fixed in r72564 (trunk), r72565 (py3k). The trailing whitespace bugfix was backported in r72566 (2.6) and r72567 (3.0), but those versions still use locale-aware isspace and islower. As a semi-accidental by-product, the fix also changes the behaviour of flo

[issue5981] float.fromhex bugs

2009-05-09 Thread Mark Dickinson
Mark Dickinson added the comment: Here's a patch. -- keywords: +patch stage: needs patch -> patch review Added file: http://bugs.python.org/file13945/issue5981.patch ___ Python tracker _

[issue5981] float.fromhex bugs

2009-05-09 Thread Mark Dickinson
New submission from Mark Dickinson : Two problems with float.fromhex: (1) it incorrectly rejects trailing whitespace on infs and nans: >>> float.fromhex('a.0 ') 10.0 >>> float.fromhex('nan ') Traceback (most recent call last): File "", line 1, in ValueError: invalid hexadecimal floating-poin