[Import-SIG] improving ImportError

Eric Snow ericsnowcurrently at gmail.com
Wed Sep 21 21:06:22 CEST 2011


Armin Ronacher has an interesting blog post about some of the
challenges of using Python's imports:

http://lucumr.pocoo.org/2011/9/21/python-import-blackbox/

In particular, his main point about "not found" vs. "broken" vs.
"problem with inner import" got me thinking.  Would it be a bad idea
to split ImportError into more specific exceptions?  I imagine that
cataloguing the different causes of ImportError and how someone might
react to those differently wouldn't be too hard...

-eric


More information about the Import-SIG mailing list