mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
bpo-32051: Fix name shadowing in multiprocessing docs (GH-4469)
This commit is contained in:
parent
ede2ac913e
commit
c172fc5031
1 changed files with 2 additions and 2 deletions
|
@ -1837,8 +1837,8 @@ Running the following commands creates a server for a single shared queue which
|
|||
remote clients can access::
|
||||
|
||||
>>> from multiprocessing.managers import BaseManager
|
||||
>>> import queue
|
||||
>>> queue = queue.Queue()
|
||||
>>> from queue import Queue
|
||||
>>> queue = Queue()
|
||||
>>> class QueueManager(BaseManager): pass
|
||||
>>> QueueManager.register('get_queue', callable=lambda:queue)
|
||||
>>> m = QueueManager(address=('', 50000), authkey=b'abracadabra')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue