Kaydet (Commit) c172fc50 authored tarafından Jason Yang's avatar Jason Yang Kaydeden (comit) Berker Peksag

bpo-32051: Fix name shadowing in multiprocessing docs (GH-4469)

üst ede2ac91
......@@ -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')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment