[issue4031] 08 value popups an stdin error, no date handle allowed
Tim Gordon
report at bugs.python.org
Fri Oct 3 18:58:54 CEST 2008
Tim Gordon <tim.py at aleph17.co.uk> added the comment:
By prefixing a number with 0, you're actually using octal rather than
decimal (i.e., only digits 0 to 7 are valid). For example, try:
>>> print 030
24
>>> print 077
63
patricio wrote:
> New submission from patricio <patriciogimelli at yahoo.com.ar>:
>
> a = 08
> print a
> File"<stdin>",line 1
> a = 08
> <
> syntax error:invalid token
>
> (if I use 07, the 0 is supressed but it compiles & display the 7)
>
> ----------
> messages: 74258
> nosy: pgimelli
> severity: normal
> status: open
> title: 08 value popups an stdin error, no date handle allowed
> type: compile error
> versions: Python 2.5
>
> _______________________________________
> Python tracker <report at bugs.python.org>
> <http://bugs.python.org/issue4031>
> _______________________________________
> _______________________________________________
> New-bugs-announce mailing list
> New-bugs-announce at python.org
> http://mail.python.org/mailman/listinfo/new-bugs-announce
>
>
----------
nosy: +QuantumTim
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4031>
_______________________________________
More information about the Python-bugs-list
mailing list