Repository navigation
Possible issue in multiprocessing doc #76232
Copy link
Copy link
Closed
Labels
3.7 (EOL)end of lifeend of lifedocsDocumentation in the Doc dirDocumentation in the Doc direasytype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Description
Activity
in multiprocessing doc https://docs.python.org/3.6/library/multiprocessing.html
under 17.2.2.7.2. Using a remote manager, >>> from multiprocessing.managers import BaseManager >>> import queue >>> queue = queue.Queue() >>> class QueueManager(BaseManager): pass >>> QueueManager.register('get_queue', callable=lambda:queue) >>> m = QueueManager(address=('', 50000), authkey=b'abracadabra') >>> s = m.get_server() >>> s.serve_forever()
queue is used as both module name and variable name, should this be avoided?
- addedtype-featureA feature request or enhancementA feature request or enhancement
on Nov 16, 2017 The example itself works fine, but I agree that it would be better to use a better name. We could replace
('foo.bar.org', 50000)in the following examples with('', 50000)too.Would you like to send a PR? The documentation file is located at Doc/library/multiprocessing.rst.
- added3.7 (EOL)end of lifeend of lifetype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or errorand removedtype-featureA feature request or enhancementA feature request or enhancement
on Nov 17, 2017 Thank you for answering!
Yes, I would be very happy to do that, this is going to be my first contribution! :)Hi Berker,
I didn't update "following examples with('', 50000)too." because this is different than the previous one, this is client connecting to server, so hostname cannot be empty string.Thanks!
Metadata
Metadata
Assignees
Labels
3.7 (EOL)end of lifeend of lifedocsDocumentation in the Doc dirDocumentation in the Doc direasytype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields: