[New-bugs-announce] [issue42842] import logging.handlers shows weird behavior

sasquatchplatypus report at bugs.python.org
Wed Jan 6 11:30:16 EST 2021


New submission from sasquatchplatypus <maxiwei at aol.com>:

when trying to import a handler from logging.handlers, you have to explicitely import logging.handlers, because trying to get it from logging directly (for example import logging, logging.handlers.RotatingFileHandlers)
raises this error: AttributeError: module 'logging' has no attribute 'handlers'

----------
messages: 384509
nosy: sasquatchplatypus
priority: normal
severity: normal
status: open
title: import logging.handlers shows weird behavior
type: behavior
versions: Python 3.9

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42842>
_______________________________________


More information about the New-bugs-announce mailing list