mirror of
https://github.com/python/cpython.git
synced 2024-11-24 10:24:35 +08:00
bpo-32051: Fix name shadowing in multiprocessing docs (GH-4469)
This commit is contained in:
parent
ede2ac913e
commit
c172fc5031
@ -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…
Reference in New Issue
Block a user