Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e969a21

Browse files
committed
Fix closes Issue11155 - Correct the multiprocessing.Queue.put's arg (replace 'item' with 'obj') in the docs. Patch by Westley Martínez.
1 parent bcf99ac commit e969a21

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Doc/library/multiprocessing.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -552,9 +552,9 @@ For an example of the usage of queues for interprocess communication see
552552
Return ``True`` if the queue is full, ``False`` otherwise. Because of
553553
multithreading/multiprocessing semantics, this is not reliable.
554554

555-
.. method:: put(item[, block[, timeout]])
555+
.. method:: put(obj[, block[, timeout]])
556556

557-
Put item into the queue. If the optional argument *block* is ``True``
557+
Put obj into the queue. If the optional argument *block* is ``True``
558558
(the default) and *timeout* is ``None`` (the default), block if necessary until
559559
a free slot is available. If *timeout* is a positive number, it blocks at
560560
most *timeout* seconds and raises the :exc:`queue.Full` exception if no
@@ -563,9 +563,9 @@ For an example of the usage of queues for interprocess communication see
563563
available, else raise the :exc:`queue.Full` exception (*timeout* is
564564
ignored in that case).
565565

566-
.. method:: put_nowait(item)
566+
.. method:: put_nowait(obj)
567567

568-
Equivalent to ``put(item, False)``.
568+
Equivalent to ``put(obj, False)``.
569569

570570
.. method:: get([block[, timeout]])
571571

0 commit comments

Comments
 (0)