On Tue, Nov 30, 2010 at 09:23, Stephen J. Turnbull email@example.com wrote:
Sure you can. In Python program text, all keywords will be ASCII
Yes, yes, sure, but not the contents of variables,
I see no reason not to make a similar promise for numeric literals.
Wait what, literas? The example was
Which doesn't have any numeric literals in them at all. Do that work? Nope, it's a syntax error. Too badm that would have been cool, but whatever.
Why would this be a problem:
T1234 = float('١٢٣٤.٥٦') T1234
But this OK?
T١٢٣٤ = float('1234.56') T١٢٣٤
I don't see that.
Should we bother to implement ١٢٣٤.٥٦ as a literal equivalent to 1234.56? Well, not unless somebody askes for it, or it turns out to be easy. :-) But that's another question.