[issue8356] SyntaxError: integer assignment with leading zeros (only 8 and 9)

2010-04-09 Thread Éric Araujo

Éric Araujo  added the comment:

Duly documented here: 
http://docs.python.org/reference/lexical_analysis.html#numeric-literals

Regards

--
nosy: +merwok

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8356] SyntaxError: integer assignment with leading zeros (only 8 and 9)

2010-04-09 Thread Ezio Melotti

Ezio Melotti  added the comment:

The leading 0 is used to indicate octal numbers, and 8 and 9 are not valid 
octal digits.

--
nosy: +ezio.melotti
resolution:  -> invalid
stage:  -> committed/rejected
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8356] SyntaxError: integer assignment with leading zeros (only 8 and 9)

2010-04-09 Thread Martin Zimmermann

New submission from Martin Zimmermann :

try this:
x = (05, 06, 07)
y = (08, 09, 019)

you will get SyntaxError: invalid token.
(also in python 2.5.2)

--
components: Interpreter Core
messages: 102706
nosy: posativ
severity: normal
status: open
title: SyntaxError: integer assignment with leading zeros (only 8 and 9)
versions: Python 2.6

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com