[issue3360] Inconsistent type-deduction of decimal floating-point
Richard B. Kreckel
report at bugs.python.org
Tue Jul 15 12:45:38 CEST 2008
New submission from Richard B. Kreckel <richyk at users.sourceforge.net>:
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.
----------
components: Interpreter Core
messages: 69677
nosy: richyk
severity: normal
status: open
title: Inconsistent type-deduction of decimal floating-point
versions: Python 2.5
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3360>
_______________________________________
More information about the Python-bugs-list
mailing list