hi, I agree with this.
I never seen any man in China using chinese number literals (at least two kinds:一, 壹, same meaning with 1) in Python program, except UI output. They can do some mappings when want to output these non-ascii numbers. Example: if 1: print "一" I think it is a little ugly to have code like this: num = float("一.一"), expected result is: num = 1.1 br, khy On Tue, Nov 30, 2010 at 4:23 PM, Stephen J. Turnbull <step...@xemacs.org> wrote: > Lennart Regebro writes: > > > *I* think it is more important. In python 3, you can never ever assume > > anything is ASCII any more. > > Sure you can. In Python program text, all keywords will be ASCII > (English, even, though it may be en_NL.UTF-8<wink>) for the forseeable > future. > > I see no reason not to make a similar promise for numeric literals. I > see no good reason to allow compatibility full-width Japanese "ASCII" > numerals or Arabic cursive numerals in "for i in range(...)" for > example. > > As soon as somebody gives an example of a culture, however minor, that > uses computers but actively prefers to use non-ASCII numerals to > express numbers in an IT context, I'll review my thinking. But at the > moment it's 101% YAGNI. > _______________________________________________ > Python-Dev mailing list > Python-Dev@python.org > http://mail.python.org/mailman/listinfo/python-dev > Unsubscribe: > http://mail.python.org/mailman/options/python-dev/cornsea%40gmail.com > _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com