This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author kai.jmueller
Recipients docs@python, kai.jmueller
Date 2021-06-21.13:04:38
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1624280678.3.0.314490541758.issue44473@roundup.psfhosted.org>
In-reply-to
Content
According to the docstring of logging.handlers.QueueHandler
"The base implementation formats the record to merge the message and arguments, and removes unpickleable items from the record in-place."
But, if a just a log message is used w/o any arguments, the arguments are still set to None, which IMHO unexpected. Especially, according to the typeshed project, the "args" is ALWAYS either a dict or a tuple. But in this case, they are set to None which surprised my a lot.

Would it be possible to improve the docstring to state, that args, exc_info, exc_text are set to None and that msg is overwritten. If you miss this tiny but very important detail, additional handlers can act very wrong.
In addition, it seems to be that the type information needs to be improved in typeshed or are there any other plans on your side?
History
Date User Action Args
2021-06-21 13:04:38kai.jmuellersetrecipients: + kai.jmueller, docs@python
2021-06-21 13:04:38kai.jmuellersetmessageid: <1624280678.3.0.314490541758.issue44473@roundup.psfhosted.org>
2021-06-21 13:04:38kai.jmuellerlinkissue44473 messages
2021-06-21 13:04:38kai.jmuellercreate