[issue12127] Inconsistent leading zero treatment

Ezio Melotti report at bugs.python.org
Fri May 20 14:19:51 CEST 2011


Ezio Melotti <ezio.melotti at gmail.com> added the comment:

If the leading 0s are valid for floats (and complex) literals then int literals are indeed inconsistent.
If we want consistency with the other literals, it is probably better allowing them for ints, because removing them from float/complex is not backward compatible, but on the other hand it might be better to wait a few more versions to avoid surprises for people porting 2.x code to 3.x.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12127>
_______________________________________


More information about the Python-bugs-list mailing list