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 richyk
Recipients richyk
Date 2008-07-15.10:45:34
SpamBayes Score 0.03717162
Marked as misclassified No
Message-id <1216118738.54.0.735219671466.issue3360@psf.upfronthosting.co.za>
In-reply-to
Content
When constructing a floating-point value, literals are apparently
sometimes interpreted as octal integral types, although they contain
exponent marker or/and decimal point. The presence of exponent marker
or/and decimal point should suffice to identify it as floating-point.

Example:
>>> x = 02120246124e0
>>> x = 02120246124.0
>>> x = 021202461241e0
ValueError: invalid literal for long() with base 8: '021202461241e0'
>>> x = 021202461241.0
ValueError: invalid literal for long() with base 8: '021202461241.0'

I am using Python 2.5.1 from openSuSE 10.3.
History
Date User Action Args
2008-07-15 10:45:38richyksetspambayes_score: 0.0371716 -> 0.03717162
recipients: + richyk
2008-07-15 10:45:38richyksetspambayes_score: 0.0371716 -> 0.0371716
messageid: <1216118738.54.0.735219671466.issue3360@psf.upfronthosting.co.za>
2008-07-15 10:45:36richyklinkissue3360 messages
2008-07-15 10:45:34richykcreate