@@ -971,9 +971,11 @@ possible, while any potentially slow operations (such as sending an email via
971
971
.. class :: QueueHandler(queue)
972
972
973
973
Returns a new instance of the :class: `QueueHandler ` class. The instance is
974
- initialized with the queue to send messages to. The queue can be any
975
- queue-like object; it's used as-is by the :meth: `enqueue ` method, which needs
976
- to know how to send messages to it.
974
+ initialized with the queue to send messages to. The *queue * can be any
975
+ queue-like object; it's used as-is by the :meth: `enqueue ` method, which
976
+ needs to know how to send messages to it. The queue is not *required * to
977
+ have the task tracking API, which means that you can use
978
+ :class: `~queue.SimpleQueue ` instances for *queue *.
977
979
978
980
979
981
.. method :: emit(record)
@@ -1029,11 +1031,14 @@ possible, while any potentially slow operations (such as sending an email via
1029
1031
initialized with the queue to send messages to and a list of handlers which
1030
1032
will handle entries placed on the queue. The queue can be any queue-like
1031
1033
object; it's passed as-is to the :meth: `dequeue ` method, which needs
1032
- to know how to get messages from it. If ``respect_handler_level `` is ``True ``,
1033
- a handler's level is respected (compared with the level for the message) when
1034
- deciding whether to pass messages to that handler; otherwise, the behaviour
1035
- is as in previous Python versions - to always pass each message to each
1036
- handler.
1034
+ to know how to get messages from it. The queue is not *required * to have the
1035
+ task tracking API (though it's used if available), which means that you can
1036
+ use :class: `~queue.SimpleQueue ` instances for *queue *.
1037
+
1038
+ If ``respect_handler_level `` is ``True ``, a handler's level is respected
1039
+ (compared with the level for the message) when deciding whether to pass
1040
+ messages to that handler; otherwise, the behaviour is as in previous Python
1041
+ versions - to always pass each message to each handler.
1037
1042
1038
1043
.. versionchanged :: 3.5
1039
1044
The ``respect_handler_levels `` argument was added.
0 commit comments