Skip to content

ast.literal_eval() shouldn't accept booleans as numbers in AST #77074

@serhiy-storchaka

Description

@serhiy-storchaka
BPO 32893
Nosy @rhettinger, @terryjreedy, @benjaminp, @serhiy-storchaka
PRs
  • bpo-32893: ast.literal_eval() no longer accepts booleans as numbers in AST. #5798
  • bpo-32888: Improve exception message in ast.literal_eval #340
  • 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-16.19:59:42.950>
    created_at = <Date 2018-02-21.09:56:21.602>
    labels = ['3.8', 'type-feature', 'library']
    title = "ast.literal_eval() shouldn't accept booleans as numbers in AST"
    updated_at = <Date 2020-05-16.19:59:42.949>
    user = 'https://github.com/serhiy-storchaka'

    bugs.python.org fields:

    activity = <Date 2020-05-16.19:59:42.949>
    actor = 'serhiy.storchaka'
    assignee = 'none'
    closed = True
    closed_date = <Date 2020-05-16.19:59:42.950>
    closer = 'serhiy.storchaka'
    components = ['Library (Lib)']
    creation = <Date 2018-02-21.09:56:21.602>
    creator = 'serhiy.storchaka'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 32893
    keywords = ['patch']
    message_count = 6.0
    messages = ['312485', '312498', '312500', '312687', '312700', '369063']
    nosy_count = 4.0
    nosy_names = ['rhettinger', 'terry.reedy', 'benjamin.peterson', 'serhiy.storchaka']
    pr_nums = ['5798', '340']
    priority = 'normal'
    resolution = 'out of date'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue32893'
    versions = ['Python 3.8']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.8 (EOL)end of lifestdlibStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancement

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions