Kaydet (Commit) 74470b5d authored tarafından Senthil Kumaran's avatar Senthil Kumaran

merge from 3.2. Fix closes Issue11155 - Correct the multiprocessing.Queue.put's…

merge from 3.2. Fix closes Issue11155  - Correct the multiprocessing.Queue.put's arg (replace 'item' with 'obj') in the docs. Patch by Westley Martínez.
...@@ -571,9 +571,9 @@ For an example of the usage of queues for interprocess communication see ...@@ -571,9 +571,9 @@ For an example of the usage of queues for interprocess communication see
Return ``True`` if the queue is full, ``False`` otherwise. Because of Return ``True`` if the queue is full, ``False`` otherwise. Because of
multithreading/multiprocessing semantics, this is not reliable. multithreading/multiprocessing semantics, this is not reliable.
.. method:: put(item[, block[, timeout]]) .. method:: put(obj[, block[, timeout]])
Put item into the queue. If the optional argument *block* is ``True`` Put obj into the queue. If the optional argument *block* is ``True``
(the default) and *timeout* is ``None`` (the default), block if necessary until (the default) and *timeout* is ``None`` (the default), block if necessary until
a free slot is available. If *timeout* is a positive number, it blocks at a free slot is available. If *timeout* is a positive number, it blocks at
most *timeout* seconds and raises the :exc:`queue.Full` exception if no most *timeout* seconds and raises the :exc:`queue.Full` exception if no
...@@ -582,9 +582,9 @@ For an example of the usage of queues for interprocess communication see ...@@ -582,9 +582,9 @@ For an example of the usage of queues for interprocess communication see
available, else raise the :exc:`queue.Full` exception (*timeout* is available, else raise the :exc:`queue.Full` exception (*timeout* is
ignored in that case). ignored in that case).
.. method:: put_nowait(item) .. method:: put_nowait(obj)
Equivalent to ``put(item, False)``. Equivalent to ``put(obj, False)``.
.. method:: get([block[, timeout]]) .. method:: get([block[, timeout]])
......
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