[issue42842] import logging.handlers shows weird behavior

2021-01-06 Thread sasquatchplatypus


New submission from sasquatchplatypus :

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 
<https://bugs.python.org/issue42842>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42842] module 'logging' has not attribute 'handlers'

2021-01-06 Thread sasquatchplatypus


Change by sasquatchplatypus :


--
title: import logging.handlers shows weird behavior -> module 'logging' has not 
attribute 'handlers'

___
Python tracker 
<https://bugs.python.org/issue42842>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com