mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
[doc] Update cookbook example and add information about queue types. (GH-94854)
This commit is contained in:
parent
08f68975ab
commit
dc54193095
2 changed files with 11 additions and 1 deletions
|
@ -1018,6 +1018,8 @@ possible, while any potentially slow operations (such as sending an email via
|
|||
have the task tracking API, which means that you can use
|
||||
:class:`~queue.SimpleQueue` instances for *queue*.
|
||||
|
||||
.. note:: If you are using :mod:`multiprocessing`, you should avoid using
|
||||
:class:`~queue.SimpleQueue` and instead use :class:`multiprocessing.Queue`.
|
||||
|
||||
.. method:: emit(record)
|
||||
|
||||
|
@ -1091,6 +1093,9 @@ possible, while any potentially slow operations (such as sending an email via
|
|||
task tracking API (though it's used if available), which means that you can
|
||||
use :class:`~queue.SimpleQueue` instances for *queue*.
|
||||
|
||||
.. note:: If you are using :mod:`multiprocessing`, you should avoid using
|
||||
:class:`~queue.SimpleQueue` and instead use :class:`multiprocessing.Queue`.
|
||||
|
||||
If ``respect_handler_level`` is ``True``, a handler's level is respected
|
||||
(compared with the level for the message) when deciding whether to pass
|
||||
messages to that handler; otherwise, the behaviour is as in previous Python
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue