Skip to content

Improve exception message in ast.literal_eval #77069

@Rosuav

Description

@Rosuav
BPO 32888
Nosy @briancurtin, @Rosuav, @serhiy-storchaka
PRs
  • bpo-32888: Improve exception message in ast.literal_eval #340
  • bpo-38396: dump(node) instead of repr(node) on ast.literal_eval #16620
  • bpo-32888: enhance ast.literal_eval error messagess with context information #17662
  • Dependencies
  • bpo-32892: Remove specific constant AST types in favor of ast.Constant
  • bpo-32893: ast.literal_eval() shouldn't accept booleans as numbers in AST
  • 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 = None
    created_at = <Date 2018-02-20.17:26:21.508>
    labels = ['3.8', 'library']
    title = 'Improve exception message in ast.literal_eval'
    updated_at = <Date 2019-12-19.15:26:59.362>
    user = 'https://github.com/Rosuav'

    bugs.python.org fields:

    activity = <Date 2019-12-19.15:26:59.362>
    actor = 'BTaskaya'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['Library (Lib)']
    creation = <Date 2018-02-20.17:26:21.508>
    creator = 'Rosuav'
    dependencies = ['32892', '32893']
    files = []
    hgrepos = []
    issue_num = 32888
    keywords = ['patch']
    message_count = 6.0
    messages = ['312423', '312424', '312427', '312429', '312442', '320993']
    nosy_count = 3.0
    nosy_names = ['brian.curtin', 'Rosuav', 'serhiy.storchaka']
    pr_nums = ['340', '16620', '17662']
    priority = 'normal'
    resolution = None
    stage = 'patch review'
    status = 'open'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue32888'
    versions = ['Python 3.8']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.8 (EOL)end of lifestdlibStandard Library Python modules in the Lib/ directory

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions