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

random832 at fastmail.us random832 at fastmail.us
Sat Jul 18 19:35:49 CEST 2015


On Fri, Jul 17, 2015, at 10:28, Eric V. Smith wrote:
> 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.

Counter-proposal - allow 00001 through 00009 since they are equally
unambiguous.


More information about the Python-ideas mailing list