[Python-Dev] unicodedata.numeric (was RE: stupid floating point question...)

Fredrik Lundh Fredrik Lundh" <effbot@telia.com
Thu, 28 Sep 2000 23:14:45 +0200


tim wrote:
> leaving-it-up-to-/f-to-decide-what-.rational()-should-return-for-pi-
>     ly y'ts  - the timmy of death

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

</F>