[issue12703] Improve error reporting for packaging.util.resolve_name

Éric Araujo report at bugs.python.org
Wed Feb 8 16:02:43 CET 2012


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

FYI, here is code that can handle arbitrary dotted names: <http://svn.eby-sarna.com/Importing/peak/util/imports.py?view=markup>.  I haven’t checked if its error reporting has the problem we’re discussing in this report.

An alternative would be to use colon notation, e.g. package.submodule:Thing.Nested.attribute.

My preference is still for find_object, using dots and with the nesting prohibition.

----------
nosy: +erik.bray

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


More information about the Python-bugs-list mailing list