[Python-Dev] Python and the Unicode Character Database
Lennart Regebro
regebro at gmail.com
Thu Dec 2 14:28:33 CET 2010
2010/12/2 Stephen J. Turnbull <stephen at xemacs.org>:
> Because that works, but
>
> print(T1234)
>
> doesn't (it prints ASCII). You can't round-trip, but users will
> want/expect that.
You should be able to round-trip, absolutely. I don't think you should
expect print() to do that. str(56) possibly. :)
That's an argument for it to be in a module, as you then would need to
send in a parameter on which decimal characters you want.
> T1000 = float('一.◯◯◯')
That was already discussed here, and it's clear that unicode does not
consider these characters to be something you can use in a decimal
number, and hence it's not broken.
More information about the Python-Dev
mailing list