Skip to content

multiprocess.Lock is missing the locked() method #85049

Description

@remilapeyre
BPO 40872
Nosy @remilapeyre
PRs
  • gh-85049: Add multiprocessing.Lock.locked() #20651
  • 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 2020-06-05.13:46:27.898>
    labels = ['library', '3.10']
    title = 'multiprocess.Lock is missing the locked() method'
    updated_at = <Date 2020-06-05.13:50:59.392>
    user = 'https://github.com/remilapeyre'

    bugs.python.org fields:

    activity = <Date 2020-06-05.13:50:59.392>
    actor = 'remi.lapeyre'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['Library (Lib)']
    creation = <Date 2020-06-05.13:46:27.898>
    creator = 'remi.lapeyre'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 40872
    keywords = ['patch']
    message_count = 1.0
    messages = ['370762']
    nosy_count = 1.0
    nosy_names = ['remi.lapeyre']
    pr_nums = ['20651']
    priority = 'normal'
    resolution = None
    stage = 'patch review'
    status = 'open'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue40872'
    versions = ['Python 3.10']

    Activity

    1. remilapeyre commented on Jun 5, 2020

      remilapeyremannequin
      MannequinAuthor

      multiprocessing is supposed to be a drop-in replacement for the threading module and multiprocessing.Lock() is advertised as a "a close analog of threading.Lock." but it is missing the locked() method that returns whether the current status of the lock.

    2. added
      stdlibStandard Library Python modules in the Lib/ directory
      on Jun 5, 2020
    3. transferred this issue fromon Apr 10, 2022
    4. YvesDup commented on Aug 13, 2026

      @YvesDup
      Contributor

      This issue should be closed in favor of #115942 and #115944

    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      Projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions