This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author QuantumTim
Recipients QuantumTim, pgimelli
Date 2008-10-03.16:58:53
SpamBayes Score 1.65917e-07
Marked as misclassified No
Message-id <48E64F49.4040908@aleph17.co.uk>
In-reply-to <1223052224.4.0.0197033611138.issue4031@psf.upfronthosting.co.za>
Content
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@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@bugs.python.org>
> <http://bugs.python.org/issue4031>
> _______________________________________
> _______________________________________________
> New-bugs-announce mailing list
> New-bugs-announce@python.org
> http://mail.python.org/mailman/listinfo/new-bugs-announce
>
>
History
Date User Action Args
2008-10-03 16:58:54QuantumTimsetrecipients: + QuantumTim, pgimelli
2008-10-03 16:58:53QuantumTimlinkissue4031 messages
2008-10-03 16:58:53QuantumTimcreate