Skip to content

implementations of the deprecated load_module import loader API, as prescribed by the documentation, are not thread safe #87824

@kale-smoothie

Description

@kale-smoothie
BPO 43658
Nosy @kale-smoothie
Files
  • thread_unsafe_import.py: set env var PICK_API=N with N in {0,1} to demonstrate thread unsafe import and N=2 for expected behaviour
  • 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 2021-03-29.16:53:01.049>
    labels = ['type-bug', '3.8', '3.9', '3.10', '3.7', 'docs']
    title = 'implementations of the deprecated load_module import loader API, as prescribed by the documentation, are not thread safe'
    updated_at = <Date 2021-03-29.16:53:01.049>
    user = 'https://github.com/kale-smoothie'

    bugs.python.org fields:

    activity = <Date 2021-03-29.16:53:01.049>
    actor = 'kale-smoothie'
    assignee = 'docs@python'
    closed = False
    closed_date = None
    closer = None
    components = ['Documentation']
    creation = <Date 2021-03-29.16:53:01.049>
    creator = 'kale-smoothie'
    dependencies = []
    files = ['49916']
    hgrepos = []
    issue_num = 43658
    keywords = []
    message_count = 1.0
    messages = ['389713']
    nosy_count = 2.0
    nosy_names = ['docs@python', 'kale-smoothie']
    pr_nums = []
    priority = 'normal'
    resolution = None
    stage = None
    status = 'open'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue43658'
    versions = ['Python 3.6', 'Python 3.7', 'Python 3.8', 'Python 3.9', 'Python 3.10']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.10only security fixes3.7 (EOL)end of life3.8 (EOL)end of life3.9only security fixesdocsDocumentation in the Doc dirtopic-importlibtype-bugAn unexpected behavior, bug, or error

      Projects

      Status

      No status

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions