[tim] > leaving-it-up-to-/f-to-decide-what-.rational()-should-return-for-pi- > ly y'ts - the timmy of death [/F] > oh, the unicode folks have figured that one out: > > >>> unicodedata.numeric(u"\N{GREEK PI SYMBOL}") > Traceback (most recent call last): > File "<stdin>", line 1, in ? > ValueError: not a numeric character Ya, except I'm starting to suspect they're not floating-point experts either: >>> unicodedata.numeric(u"\N{PLANCK CONSTANT OVER TWO PI}") Traceback (most recent call last): File "<stdin>", line 1, in ? ValueError: not a numeric character >>> unicodedata.numeric(u"\N{EULER CONSTANT}") Traceback (most recent call last): File "<stdin>", line 1, in ? ValueError: not a numeric character >>> unicodedata.numeric(u"\N{AIRSPEED OF AFRICAN SWALLOW}") UnicodeError: Unicode-Escape decoding error: Invalid Unicode Character Name >>>
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