[Python-ideas] Disallow "00000" as a synonym for "0"

Eric V. Smith eric at trueblade.com
Fri Jul 17 16:28:19 CEST 2015


On 07/16/2015 06:15 AM, Neil Girdhar wrote:
> As per this
> question: http://stackoverflow.com/questions/31447694/why-does-python-3-allow-00-as-a-literal-for-0-but-not-allow-01-as-a-literal
> 
> It seems like Python accepts "000000000" to mean "0".  Whatever the
> historical reason, should this be deprecated?

No. It would needlessly break working code.

Eric.



More information about the Python-ideas mailing list