Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug in eval() function #45831

Closed
arunkumarrajan mannequin opened this issue Nov 23, 2007 · 2 comments
Closed

Bug in eval() function #45831

arunkumarrajan mannequin opened this issue Nov 23, 2007 · 2 comments
Labels
build The build process and cross-build

Comments

@arunkumarrajan
Copy link
Mannequin

arunkumarrajan mannequin commented Nov 23, 2007

BPO 1490
Nosy @loewis

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = <Date 2007-11-23.08:11:53.495>
created_at = <Date 2007-11-23.04:40:30.805>
labels = ['build', 'invalid']
title = 'Bug in eval() function'
updated_at = <Date 2007-11-23.08:11:53.463>
user = 'https://bugs.python.org/arunkumarrajan'

bugs.python.org fields:

activity = <Date 2007-11-23.08:11:53.463>
actor = 'loewis'
assignee = 'none'
closed = True
closed_date = <Date 2007-11-23.08:11:53.495>
closer = 'loewis'
components = []
creation = <Date 2007-11-23.04:40:30.805>
creator = 'arunkumarrajan'
dependencies = []
files = []
hgrepos = []
issue_num = 1490
keywords = []
message_count = 2.0
messages = ['57769', '57771']
nosy_count = 2.0
nosy_names = ['loewis', 'arunkumarrajan']
pr_nums = []
priority = 'normal'
resolution = 'not a bug'
stage = None
status = 'closed'
superseder = None
type = 'compile error'
url = 'https://bugs.python.org/issue1490'
versions = ['Python 2.5']

@arunkumarrajan
Copy link
Mannequin Author

arunkumarrajan mannequin commented Nov 23, 2007

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
>>>

@arunkumarrajan arunkumarrajan mannequin added the build The build process and cross-build label Nov 23, 2007
@loewis
Copy link
Mannequin

loewis mannequin commented Nov 23, 2007

Why do you think this is a bug? 08 really is a syntax error, and 010
really means 8.

@loewis loewis mannequin closed this as completed Nov 23, 2007
@loewis loewis mannequin added the invalid label Nov 23, 2007
@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build The build process and cross-build
Projects
None yet
Development

No branches or pull requests

0 participants