[issue39956] Numeric Literals vs string "1_1" on input int() or float() or literal_eval

Raymond Hettinger report at bugs.python.org
Fri Mar 13 14:17:26 EDT 2020


Raymond Hettinger <raymond.hettinger at gmail.com> added the comment:

I prefer what we have now.  The language is consistent across script input, int(), and literal_eval().  

In my courses, I haven't encountered any issues with Python allowing "1_1".  The actual problem my learners encounter is the need to strip commas from input.

----------
nosy: +rhettinger

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39956>
_______________________________________


More information about the Python-bugs-list mailing list