[issue37469] Make it explicit that logging QueueHandler / QueueListener accepts a SimpleQueue.
New submission from Martijn Pieters <mj@python.org>: The implementation of the logging.handler.QueueHandler and logging.handler.QueueListener does not make use of the task tracking API of queues (queue.task_done(), queue.join()) nor does it care if the queue is unbounded (queue.full(), catching the Full exception). As such, it can work just as well with the new queue.SimpleQueue implementation (new in 3.7, see https://docs.python.org/3/library/queue.html#queue.SimpleQueue), which is fast and lightweight, implemented in C. Can the documentation be updated to make this option explicit? ---------- assignee: docs@python components: Documentation messages: 347017 nosy: docs@python, mjpieters priority: normal severity: normal status: open title: Make it explicit that logging QueueHandler / QueueListener accepts a SimpleQueue. versions: Python 3.7, Python 3.8, Python 3.9 _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue37469> _______________________________________
Change by Karthikeyan Singaravelan <tir.karthi@gmail.com>: ---------- nosy: +vinay.sajip _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue37469> _______________________________________
Change by Vinay Sajip <vinay_sajip@yahoo.co.uk>: ---------- keywords: +patch pull_requests: +14335 stage: -> patch review pull_request: https://github.com/python/cpython/pull/14521 _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue37469> _______________________________________
Vinay Sajip <vinay_sajip@yahoo.co.uk> added the comment: New changeset e6b64b756f940147728ea7808fb686ffcae89176 by Vinay Sajip in branch 'master': bpo-37469: Document usability of SimpleQueue with QueueHandler and QueueListener. (GH-14521) https://github.com/python/cpython/commit/e6b64b756f940147728ea7808fb686ffcae... ---------- _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue37469> _______________________________________
Change by miss-islington <mariatta.wijaya+miss-islington@gmail.com>: ---------- pull_requests: +14338 pull_request: https://github.com/python/cpython/pull/14525 _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue37469> _______________________________________
Change by miss-islington <mariatta.wijaya+miss-islington@gmail.com>: ---------- pull_requests: +14339 pull_request: https://github.com/python/cpython/pull/14526 _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue37469> _______________________________________
Vinay Sajip <vinay_sajip@yahoo.co.uk> added the comment: New changeset b0ab95bbe792b38e952688f8fa1657a78b35410e by Vinay Sajip (Miss Islington (bot)) in branch '3.7': bpo-37469: Document usability of SimpleQueue with QueueHandler and QueueListener. (GH-14521) (GH-14526) https://github.com/python/cpython/commit/b0ab95bbe792b38e952688f8fa1657a78b3... ---------- _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue37469> _______________________________________
Vinay Sajip <vinay_sajip@yahoo.co.uk> added the comment: New changeset 6cde61369e8174c493ca240cb52ebc9c2a2fe667 by Vinay Sajip (Miss Islington (bot)) in branch '3.8': bpo-37469: Document usability of SimpleQueue with QueueHandler and QueueListener. (GH-14521) (GH-14525) https://github.com/python/cpython/commit/6cde61369e8174c493ca240cb52ebc9c2a2... ---------- _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue37469> _______________________________________
Change by Vinay Sajip <vinay_sajip@yahoo.co.uk>: ---------- resolution: -> fixed stage: patch review -> resolved status: open -> closed _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue37469> _______________________________________
participants (4)
-
Karthikeyan Singaravelan
-
Martijn Pieters
-
miss-islington
-
Vinay Sajip