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

Typo in SyntaxError produced by pegen for numeric literals #84671

Closed
hauntsaninja opened this issue May 4, 2020 · 2 comments
Closed

Typo in SyntaxError produced by pegen for numeric literals #84671

hauntsaninja opened this issue May 4, 2020 · 2 comments
Labels
3.9 only security fixes type-bug An unexpected behavior, bug, or error

Comments

@hauntsaninja
Copy link
Contributor

BPO 40491
Nosy @serhiy-storchaka, @hauntsaninja
PRs
  • bpo-40491: fix typo in syntax error for numeric literals #19893
  • 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 2020-05-04.08:13:56.289>
    created_at = <Date 2020-05-04.03:06:24.136>
    labels = ['type-bug', '3.9']
    title = 'Typo in SyntaxError produced by pegen for numeric literals'
    updated_at = <Date 2020-05-04.08:13:56.288>
    user = 'https://github.com/hauntsaninja'

    bugs.python.org fields:

    activity = <Date 2020-05-04.08:13:56.288>
    actor = 'serhiy.storchaka'
    assignee = 'none'
    closed = True
    closed_date = <Date 2020-05-04.08:13:56.289>
    closer = 'serhiy.storchaka'
    components = []
    creation = <Date 2020-05-04.03:06:24.136>
    creator = 'hauntsaninja'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 40491
    keywords = ['patch']
    message_count = 2.0
    messages = ['368006', '368016']
    nosy_count = 2.0
    nosy_names = ['serhiy.storchaka', 'hauntsaninja']
    pr_nums = ['19893']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue40491'
    versions = ['Python 3.9']

    @hauntsaninja
    Copy link
    Contributor Author

    ~ λ python3.9
    Python 3.9.0a6+ (heads/master:c95e691, May  3 2020, 19:57:46) 
    [Clang 11.0.0 (clang-1100.0.33.17)] on darwin
    Type "help", "copyright", "credits" or "license" for more information.
    >>> import ast
    >>> ast.parse("1_2", feature_version=(3, 5))
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
      File "/Users/shantanu/.pyenv/versions/3.9-dev/lib/python3.9/ast.py", line 50, in parse
        return compile(source, filename, mode, flags,
      File "<unknown>", line 1
        1_2
        ^
    SyntaxError: Underscores in numeric literals are only supportedin Python 3.6 and greater
    

    @serhiy-storchaka
    Copy link
    Member

    New changeset c3f0014 by Shantanu in branch 'master':
    bpo-40491: Fix typo in syntax error for numeric literals (GH-19893)
    c3f0014

    @serhiy-storchaka serhiy-storchaka added the 3.9 only security fixes label May 4, 2020
    @serhiy-storchaka serhiy-storchaka added type-bug An unexpected behavior, bug, or error 3.9 only security fixes labels May 4, 2020
    @serhiy-storchaka serhiy-storchaka added the type-bug An unexpected behavior, bug, or error label May 4, 2020
    @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
    3.9 only security fixes type-bug An unexpected behavior, bug, or error
    Projects
    None yet
    Development

    No branches or pull requests

    2 participants