New submission from Florent Xicluna <florent.xicl...@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 <rep...@bugs.python.org>
<http://bugs.python.org/issue13361>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to