[issue12583] More detailed ImportError messages

R. David Murray report at bugs.python.org
Wed Jul 20 14:22:03 CEST 2011


R. David Murray <rdmurray at bitdance.com> added the comment:

It might.  Although I did miss your message about the flag, my point really was that you'll find that import is very complicated when you try to write the patch to do it.  There may not be one central place you can set and query that flag, because of the various ways import can happen and the byzantine nature of the import code.  It doesn't seem likely that anyone on the current team is going to tackle tying this, but you are welcome to.  We always need more contributors.  Just bear in mind that we weigh the benefits of patches against the additional code complexity they introduce (if they do; the most fortunate patches simplify things).  I think that's what Brett meant by "probably not worth it".

Brett wrote importlib to move a lot of the complication into Python code where it would be easier to work with.  That transition hasn't happened yet.  I hear that the import-sig is talking about doing some interesting things to (hopefully) make life better for everyone, so you might want to sign on there and find out what is going on before starting on a patch.

----------
priority: normal -> low
stage:  -> needs patch
type:  -> feature request

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


More information about the Python-bugs-list mailing list