[issue12915] Add inspect.locate and inspect.resolve

Éric Araujo report at bugs.python.org
Mon Sep 12 17:50:01 CEST 2011


Éric Araujo <merwok at netwok.org> added the comment:

Sorry if I was unclear; the functions work with a dotted name as a string and resolve it to an object.  __import__ works with module, whereas this kind of functions work with mod.name, pkg.mod.name.attr, etc., that is, they combine import and getattr.

----------

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


More information about the Python-bugs-list mailing list