[Python-3000] PEP 3127 (integer literal syntax) -- any takers?

Nick Coghlan ncoghlan at gmail.com
Sat Jun 9 13:19:00 CEST 2007


Georg Brandl wrote:
> Also, I'm not sure what int() should do with "010".

The only change would be for int(x, 0), and that should raise a 
ValueError, just like any other invalid string.

Cheers,
Nick.

-- 
Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia
---------------------------------------------------------------
             http://www.boredomandlaziness.org


More information about the Python-3000 mailing list