[New-bugs-announce] [issue23230] Bug parsing integers with zero padding

Luis G.F report at bugs.python.org
Tue Jan 13 13:18:29 CET 2015


New submission from Luis G.F:

Python 3.4 interpreter fail to parse a integer that has zero padding, whereas python 2.7 works properly.

Python 2.7.6 (default, Mar 22 2014, 22:59:56) 
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> int(001)
1
>>> 

Python 3.4.0 (default, Apr 11 2014, 13:05:11) 
[GCC 4.8.2] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> int(001)
  File "<stdin>", line 1
    int(001)
          ^
SyntaxError: invalid token
>>>

----------
components: Interpreter Core
messages: 233928
nosy: luisgf
priority: normal
severity: normal
status: open
title: Bug parsing integers with zero padding
versions: Python 3.4

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


More information about the New-bugs-announce mailing list