Skip to content

ast.literal_eval does not accept strings with leading whitespaces #86053

@gousaiyang

Description

@gousaiyang
BPO 41887
Nosy @gvanrossum, @terryjreedy, @pablogsal, @miss-islington, @isidentical, @gousaiyang
PRs
  • bpo-41887: omit leading whitespaces on ast.literal_eval #22469
  • [3.9] bpo-41887: omit leading spaces/tabs on ast.literal_eval (GH-22469) #22533
  • 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-10-04.00:56:32.242>
    created_at = <Date 2020-09-30.01:46:57.482>
    labels = ['3.8', 'type-feature', 'library', '3.9', '3.10']
    title = 'ast.literal_eval does not accept strings with leading whitespaces'
    updated_at = <Date 2020-10-04.00:56:32.241>
    user = 'https://github.com/gousaiyang'

    bugs.python.org fields:

    activity = <Date 2020-10-04.00:56:32.241>
    actor = 'gvanrossum'
    assignee = 'none'
    closed = True
    closed_date = <Date 2020-10-04.00:56:32.242>
    closer = 'gvanrossum'
    components = ['Library (Lib)']
    creation = <Date 2020-09-30.01:46:57.482>
    creator = 'gousaiyang'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 41887
    keywords = ['patch']
    message_count = 8.0
    messages = ['377687', '377711', '377722', '377843', '377853', '377882', '377909', '377911']
    nosy_count = 6.0
    nosy_names = ['gvanrossum', 'terry.reedy', 'pablogsal', 'miss-islington', 'BTaskaya', 'gousaiyang']
    pr_nums = ['22469', '22533']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue41887'
    versions = ['Python 3.8', 'Python 3.9', 'Python 3.10']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.10only security fixes3.8 (EOL)end of life3.9only security fixesstdlibPython modules in the Lib dirtype-featureA feature request or enhancement

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions