Skip to content

eval error #45354

Closed
Closed

Description

@Rayfward
mannequin
BPO 1013
Nosy @birkenfeld

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-08-24.20:03:50.412>
created_at = <Date 2007-08-24.19:59:24.825>
labels = ['type-bug', 'invalid']
title = 'eval error'
updated_at = <Date 2007-08-24.20:03:50.410>
user = 'https://bugs.python.org/Rayfward'

bugs.python.org fields:

activity = <Date 2007-08-24.20:03:50.410>
actor = 'georg.brandl'
assignee = 'none'
closed = True
closed_date = <Date 2007-08-24.20:03:50.412>
closer = 'georg.brandl'
components = []
creation = <Date 2007-08-24.19:59:24.825>
creator = 'Rayfward'
dependencies = []
files = []
hgrepos = []
issue_num = 1013
keywords = []
message_count = 2.0
messages = ['55272', '55273']
nosy_count = 2.0
nosy_names = ['georg.brandl', 'Rayfward']
pr_nums = []
priority = 'normal'
resolution = 'not a bug'
stage = None
status = 'closed'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue1013'
versions = ['Python 2.5']

Activity

  1. Rayfward commented on Aug 24, 2007

    Rayfwardmannequin
    MannequinAuthor
    >>> eval("9")
    9
    Works but.
    >>> eval("09")
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
      File "<string>", line 1
        09
        ^
    SyntaxError: invalid token
  2. birkenfeld commented on Aug 24, 2007

    @birkenfeld
    Member

    This is not a bug. Integers beginning with "0" are octal literals in Python 2.x,
    and "9" is not a valid octal digit.

    Closing as Invalid.

  3. transferred this issue fromon Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    type-bugAn unexpected behavior, bug, or error

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions