[issue12718] Logical mistake of importer method in logging.config.BaseConfigurator

Vinay Sajip report at bugs.python.org
Wed Aug 10 10:27:33 CEST 2011


Vinay Sajip <vinay_sajip at yahoo.co.uk> added the comment:

It works as expected for me:

vinay at eta-jaunty:~/projects/python/2.7$ python2.7
Python 2.7.2+ (2.7:7d5a37ce42d5, Aug 10 2011, 09:20:30) 
[GCC 4.3.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import logging.config
[62163 refs]
>>> c = logging.config.BaseConfigurator({})
[62173 refs]
>>> c.importer('pickle')
<module 'pickle' from '/home/vinay/projects/python/2.7/Lib/pickle.py'>
[65944 refs]
>>> c.importer
<built-in function __import__>
[65944 refs]
>>> c.__class__.importer
<built-in function __import__>
[65944 refs]
>>> c.__class__.importer('marshal')
<module 'marshal' (built-in)>
[65944 refs]
>>> 

Can you provide an example script which demonstrates failure? I'll mark this as invalid and pending, and close soon if no further information is forthcoming.

----------
resolution:  -> invalid
status: open -> pending

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12718>
_______________________________________


More information about the Python-bugs-list mailing list