mirror of
https://github.com/python/cpython.git
synced 2025-09-29 03:35:31 +00:00
bpo-32051: Fix name shadowing in multiprocessing docs (GH-4469)
(cherry picked from commit c172fc5031
)
This commit is contained in:
parent
cceb0f8d7b
commit
8a957534f5
1 changed files with 2 additions and 2 deletions
|
@ -1821,8 +1821,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