[New-bugs-announce] [issue5854] logging module's __all__ attribute not in sync with documentation
Floris Bruynooghe
report at bugs.python.org
Mon Apr 27 12:49:18 CEST 2009
New submission from Floris Bruynooghe <floris.bruynooghe at gmail.com>:
The logging module in Python 2.6 has started to use the __all__ method.
However it does not list all the symbols that are described in the
documentation. Most notably the getLogger function is not in the
__all__ list, but there are others like addLevelName, getLoggerClass,
setLoggerClass, ...
This does break code that does "from logging import *" which suddenly
can't use getLogger etc anymore.
----------
components: Library (Lib)
messages: 86653
nosy: flub
severity: normal
status: open
title: logging module's __all__ attribute not in sync with documentation
type: behavior
versions: Python 2.6
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5854>
_______________________________________
More information about the New-bugs-announce
mailing list