Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

AcquirerProxy object has no attributelocked #115942

Closed
Labels
stdlibStandard Library Python modules in the Lib/ directorytopic-multiprocessingtype-bugAn unexpected behavior, bug, or error
@ccaruceru

Description

@ccaruceru

Bug report

Bug description:

According to the documentation, bothmultiprocessing.Manager.Lock andRLock should be the equivalent of anthreading.Lock andRLock, but the underlyingAcquirerProxy is missing the implementation of the.locked() method to query the state of the lock.

E.g.

frommultiprocessingimportManagerfromthreadingimportLockif__name__=="__main__":lock_th=Lock()lock_th.locked()# this one workswithManager()asmanager:lock_man=manager.Lock()lock_man.locked()# this throws an "AttributeError: 'AcquirerProxy' object has no attribute 'locked'"

CPython versions tested on:

3.11, 3.12

Operating systems tested on:

Linux, macOS

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    stdlibStandard Library Python modules in the Lib/ directorytopic-multiprocessingtype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp