Underscores in Python numbers

Steve Holden steve at holdenweb.com
Sat Nov 19 16:55:27 EST 2005


bonono at gmail.com wrote:
> Steve Holden wrote:
[...]
>>I really wouldn't want it to become possible to write Python code in one
>>locale that had to be edited before the numeric literals were valid in
>>another locale. That way madness lies.
> 
> That is the fact, from the very beginning. 1.234 striaightly speaking
> can have different meaning,. So if you don't want, don't support it and
> always use the non-European notation.
> 

Being European myself I am well aware of the notational differences of 
the different locales, and I am perfectly happy that users can enter 
numbers in their preferred format when they execute a program.

However, I am not happy about the idea that a program source would need 
to be edited before it would work after being moved to another locale.

regards
  Steve
-- 
Steve Holden       +44 150 684 7255  +1 800 494 3119
Holden Web LLC                     www.holdenweb.com
PyCon TX 2006                  www.python.org/pycon/




More information about the Python-list mailing list