[New-bugs-announce] [issue28736] multiprocessing.Lock() no longer has .acquire()

Eric Leadbetter report at bugs.python.org
Fri Nov 18 11:32:34 EST 2016


New submission from Eric Leadbetter:

The documentation on the multiprocessing library in Python 3 uses Lock.acquire()/Lock.release() in the example for primitive synchronization (https://docs.python.org/3/library/multiprocessing.html#synchronization-between-processes). Lock() has been changed in Python 3 to use coroutines and so the documentation should replace the call to Lock.acquire() with an appropriate yield statement.

----------
assignee: docs at python
components: Documentation
messages: 281141
nosy: Eric Leadbetter, docs at python
priority: normal
severity: normal
status: open
title: multiprocessing.Lock() no longer has .acquire()
versions: Python 3.3, Python 3.4, Python 3.5, Python 3.6, Python 3.7

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue28736>
_______________________________________


More information about the New-bugs-announce mailing list