mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Issue #19795: Mark up None as literal text.
This commit is contained in:
parent
9f2e377beb
commit
ecf41da83e
50 changed files with 108 additions and 106 deletions
|
@ -103,7 +103,7 @@ provide the public methods described below.
|
|||
.. method:: Queue.put(item, block=True, timeout=None)
|
||||
|
||||
Put *item* into the queue. If optional args *block* is true and *timeout* is
|
||||
None (the default), block if necessary until a free slot is available. If
|
||||
``None`` (the default), block if necessary until a free slot is available. If
|
||||
*timeout* is a positive number, it blocks at most *timeout* seconds and raises
|
||||
the :exc:`Full` exception if no free slot was available within that time.
|
||||
Otherwise (*block* is false), put an item on the queue if a free slot is
|
||||
|
@ -119,7 +119,7 @@ provide the public methods described below.
|
|||
.. method:: Queue.get(block=True, timeout=None)
|
||||
|
||||
Remove and return an item from the queue. If optional args *block* is true and
|
||||
*timeout* is None (the default), block if necessary until an item is available.
|
||||
*timeout* is ``None`` (the default), block if necessary until an item is available.
|
||||
If *timeout* is a positive number, it blocks at most *timeout* seconds and
|
||||
raises the :exc:`Empty` exception if no item was available within that time.
|
||||
Otherwise (*block* is false), return an item if one is immediately available,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue