You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
AcquirerProxy object has no attribute locked #115942
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'"
Activity
pythongh-115942: Add `locked` to several multiprocessing locks
sobolevn commentedon Feb 26, 2024
We clearly can do that. But, I cannot judge if we should: #115944
I am not a field expert in
multiprocessing, so I might miss a lot of things here. But, it seems rather straight-forward at the first sight.gh-115942: Add `locked` to several multiprocessing locks (#115944)
sobolevn commentedon Apr 8, 2025
3.14 will have this new feature :)