[issue13361] getLogger does not check its argument
Florent Xicluna
report at bugs.python.org
Mon Nov 7 00:46:25 CET 2011
New submission from Florent Xicluna <florent.xicluna at gmail.com>:
>>> import logging
>>> log = logging.getLogger(any)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "./Lib/logging/__init__.py", line 1730, in getLogger
return Logger.manager.getLogger(name)
File "./Lib/logging/__init__.py", line 1114, in getLogger
self._fixupParents(rv)
File "./Lib/logging/__init__.py", line 1142, in _fixupParents
i = name.rfind(".")
AttributeError: 'builtin_function_or_method' object has no attribute 'rfind'
>>> log = logging.getLogger(any)
>>> log.error("It should not create this logger")
It should not create this logger
>>>
----------
components: Library (Lib)
messages: 147196
nosy: flox
priority: normal
severity: normal
stage: needs patch
status: open
title: getLogger does not check its argument
type: behavior
versions: Python 2.7, Python 3.2, Python 3.3
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13361>
_______________________________________
More information about the Python-bugs-list
mailing list