On Tue, Nov 30, 2010 at 9:56 AM, haiyang kang email@example.com wrote:
But you should be able to write:
text = input("Enter a number using your preferred digits: ") num = float(text)
without caring whether the user enters 一.一 or 1.1 or something else.
yes. from logical point of view, this can happen. ...
Please stop discussing a non-feature. Python's float *does not* accept ' 一.一'. This was reported as a bug and closed as invalid.
See "makeunicodedata.py does not support Unihan digit data" http://bugs.python.org/issue10575