You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
08 value popups an stdin error, no date handle allowed #48281
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=<Date2008-10-03.17:04:49.779>created_at=<Date2008-10-03.16:43:43.354>labels= ['build', 'invalid']
title='08 value popups an stdin error, no date handle allowed'updated_at=<Date2008-10-03.17:04:49.779>user='https://bugs.python.org/pgimelli'
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
Activity
pgimelli commentedon Oct 3, 2008
(if I use 07, the 0 is supressed but it compiles & display the 7)
QuantumTim commentedon Oct 3, 2008
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:
patricio wrote:
QuantumTim commentedon Oct 3, 2008
Whoops, I thought the tracker automatically removed quoted text! :z