Brett Cannon added the comment:

And this is why we have said people should use the idiom of 
``__import__('http.blah'); mod = sys.modules['http.blah']`` if importlib is not 
used (which is on PyPI and works as far back as Python 2.3), else you will deal 
with an AttributeError later instead of an ImportError upfront. <grumble>Darn 
backwards-compatibility</grumble>.

Eric's patch looks fine, so I will get it committed today.

----------
assignee:  -> brett.cannon
stage: needs patch -> commit review

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue15715>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to