Chris Angelico writes:

 > >     It's very difficult to get *any* syntax change in.  In particular,
 > >     changing '_' from an identifier component to an operator for
 > >     combining numeric literals would invalidate *tons* of code
 > >     (including internationalization code that is the 0.454kg nearest
 > >     my heart).  I can't imagine that being possible.
 > 
 > >>> 123_456
 > 123456
 > >>> 123_456_
 >   File "<stdin>", line 1
 >     123_456_
 >            ^
 > SyntaxError: invalid decimal literal
 > 
 > Trailing underscore is currently invalid, so that would be fine.

I really meant "operator", not just syntax.  It was an extreme example.

_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/WNR75C4FNFF5LUTMVFMFVLGOUSBOSYW7/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to