[issue12703] Improve error reporting for packaging.util.resolve_name
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.
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list