[New-bugs-announce] [issue1490] Bug in eval() function

Arunkumar report at bugs.python.org
Fri Nov 23 05:40:31 CET 2007


New submission from Arunkumar:

PythonWin 2.5 (r25:51908, Sep 19 2006, 09:52:17) [MSC v.1310 32 bit 
(Intel)] on win32.
Portions Copyright 1994-2006 Mark Hammond - see 'Help/About PythonWin' 
for further copyright information.
>>> 
>>> 
>>> eval("02*2")
4
>>> 
>>> eval("08*2")
Traceback (most recent call last):
  File "<interactive input>", line 1, in <module>
  File "<string>", line 1
    08*2
     ^
SyntaxError: invalid token
>>> eval("09*2")
Traceback (most recent call last):
  File "<interactive input>", line 1, in <module>
  File "<string>", line 1
    09*2
     ^
SyntaxError: invalid token
>>> 
>>> 
>>> eval("07*2")
14
>>> 
>>> eval("010*2")
16
>>> eval("9*2")
18
>>>

----------
messages: 57769
nosy: arunkumarrajan
severity: urgent
status: open
title: Bug in eval() function
type: compile error
versions: Python 2.5

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1490>
__________________________________


More information about the New-bugs-announce mailing list