skip at 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() allow whitespace. Maybe I'm > thinking of trailing non-numeric, non-whitespace characters. Maybe you remember truly *embedded* whitespace: py> float("1. 3") Traceback (most recent call last): File "<stdin>", line 1, in <module> ValueError: invalid literal for float(): 1. 3 Regards, Martin
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4