[New-bugs-announce] [issue16671] logging.handlers.QueueListener sentinel should not be None

Andras Szalai report at bugs.python.org
Wed Dec 12 19:28:09 CET 2012


New submission from Andras Szalai:

In the class `logging.handlers.QueueListener` the `_sentinel` is `None`.

But
>>> a = None
>>> b = None
>>> a is b
True

Because of this, the QueueListener stops if it receives a `None`.
Were the sentinel a proper instance, like:
_sentinel = {}

This would not happen.

----------
messages: 177385
nosy: Andras.Szalai
priority: normal
severity: normal
status: open
title: logging.handlers.QueueListener sentinel should not be None
type: behavior
versions: Python 3.1, Python 3.2, Python 3.3, Python 3.4, Python 3.5

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue16671>
_______________________________________


More information about the New-bugs-announce mailing list