[issue16359] can't print figures 08 and 09

2012-10-29 Thread jose gregorio fernandez trincado

New submission from jose gregorio fernandez trincado:

In [2]: 09
  File ipython-input-2-7010843e6b42, line 1
09
 ^
SyntaxError: invalid token

Using str() produce SyntaxError too. The same for 08. Figures like 01 and 02 
produce the appropriate output.

Hardware: Lenovo 3000 N200, 80Gb of HD, 4Gb of RAM, Core-Duo 2.6GHz
OS: Ubuntu 12.04, 64bits.

--
components: None
messages: 174126
nosy: jose.gregorio.fernandez.trincado
priority: normal
severity: normal
status: open
title: can't print figures 08 and 09
type: behavior
versions: Python 2.7

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



[issue16359] can't print figures 08 and 09

2012-10-29 Thread Ezio Melotti

Ezio Melotti added the comment:

Those are invalid octal literals, since the digits 8 and 9 don't exist in octal.
See 
http://docs.python.org/2/reference/lexical_analysis.html#grammar-token-octinteger

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

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