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

better error reporting in ast #86727

Closed
sam-s mannequin opened this issue Dec 3, 2020 · 2 comments
Closed

better error reporting in ast #86727

sam-s mannequin opened this issue Dec 3, 2020 · 2 comments
Labels
3.10 only security fixes stdlib Python modules in the Lib dir type-feature A feature request or enhancement

Comments

@sam-s
Copy link
Mannequin

sam-s mannequin commented Dec 3, 2020

BPO 42561
Nosy @sam-s, @isidentical
Superseder
  • bpo-28964: AST literal_eval exceptions provide no information about line number
  • Files
  • ast.diff: proposed patch
  • 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-12-08.08:08:52.949>
    created_at = <Date 2020-12-03.20:24:18.280>
    labels = ['type-feature', 'library', '3.10']
    title = 'better error reporting in ast'
    updated_at = <Date 2020-12-08.08:09:22.276>
    user = 'https://github.com/sam-s'

    bugs.python.org fields:

    activity = <Date 2020-12-08.08:09:22.276>
    actor = 'BTaskaya'
    assignee = 'none'
    closed = True
    closed_date = <Date 2020-12-08.08:08:52.949>
    closer = 'BTaskaya'
    components = ['Library (Lib)']
    creation = <Date 2020-12-03.20:24:18.280>
    creator = 'sam-s'
    dependencies = []
    files = ['49653']
    hgrepos = []
    issue_num = 42561
    keywords = ['patch']
    message_count = 2.0
    messages = ['382449', '382717']
    nosy_count = 2.0
    nosy_names = ['sam-s', 'BTaskaya']
    pr_nums = []
    priority = 'normal'
    resolution = 'duplicate'
    stage = 'resolved'
    status = 'closed'
    superseder = '28964'
    type = 'enhancement'
    url = 'https://bugs.python.org/issue42561'
    versions = ['Python 3.10']

    @sam-s
    Copy link
    Mannequin Author

    sam-s mannequin commented Dec 3, 2020

    ast parsing error locations are hard to pinpoint.
    See https://stackoverflow.com/q/46933995/850781.

    @sam-s sam-s mannequin added 3.10 only security fixes stdlib Python modules in the Lib dir type-feature A feature request or enhancement labels Dec 3, 2020
    @isidentical
    Copy link
    Sponsor Member

    This is a duplicate of bpo-28964

    @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.10 only security fixes stdlib Python modules in the Lib dir type-feature A feature request or enhancement
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant