[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/issu

[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