Skip to content

_ast module: get_global_ast_state() doesn't work with Mercurial lazy import #85797

@vstinner

Description

@vstinner
BPO 41631
Nosy @vstinner, @DinoV, @encukou, @ambv, @ericsnowcurrently, @manueljacob, @corona10, @pablogsal, @isidentical, @shihai1991
PRs
  • bpo-41631: _ast module uses again a global state #21961
  • bpo-41631: Check that importing _ast returns the right module  #21973
  • [3.9] bpo-41631: _ast module uses again a global state (GH-21961) #22258
  • [3.9] bpo-41631: Fix a compiler warning in pycore_pylifecycle.h #22331
  • bpo-41796: Make _ast module state per interpreter #23024
  • 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-09-15.21:32:12.176>
    created_at = <Date 2020-08-25.10:16:01.780>
    labels = ['library', '3.9', '3.10']
    title = "_ast module: get_global_ast_state() doesn't work with Mercurial lazy import"
    updated_at = <Date 2020-10-29.11:52:17.187>
    user = 'https://github.com/vstinner'

    bugs.python.org fields:

    activity = <Date 2020-10-29.11:52:17.187>
    actor = 'vstinner'
    assignee = 'none'
    closed = True
    closed_date = <Date 2020-09-15.21:32:12.176>
    closer = 'vstinner'
    components = ['Library (Lib)']
    creation = <Date 2020-08-25.10:16:01.780>
    creator = 'vstinner'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 41631
    keywords = ['patch']
    message_count = 23.0
    messages = ['375881', '375883', '375884', '375948', '375950', '375951', '375952', '375955', '375956', '375957', '376256', '376564', '376565', '376573', '376574', '376575', '376686', '376708', '376874', '376946', '376950', '376955', '376956']
    nosy_count = 10.0
    nosy_names = ['vstinner', 'dino.viehland', 'petr.viktorin', 'lukasz.langa', 'eric.snow', 'mjacob', 'corona10', 'pablogsal', 'BTaskaya', 'shihai1991']
    pr_nums = ['21961', '21973', '22258', '22331', '23024']
    priority = None
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue41631'
    versions = ['Python 3.9', 'Python 3.10']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.10only security fixes3.9 (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