[issue28736] multiprocessing.Lock() no longer has .acquire()

2016-11-18 Thread Eric Leadbetter

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@python
components: Documentation
messages: 281141
nosy: Eric Leadbetter, docs@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 
<http://bugs.python.org/issue28736>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue28736] multiprocessing.Lock() no longer has .acquire()

2016-11-18 Thread Eric Leadbetter

Eric Leadbetter added the comment:

It was a typographical error on my part. My mistake.

--
status: open -> closed

___
Python tracker 
<http://bugs.python.org/issue28736>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com