<div class="gmail_quote">On Thu, Nov 10, 2011 at 1:14 PM, &quot;Martin v. Löwis&quot; <span dir="ltr">&lt;<a href="mailto:martin@v.loewis.de">martin@v.loewis.de</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">That already fails with PEP 402: you can&#39;t import the virtual package,</div>
only the subpackages. It then just stops with that import failed, and<br>
doesn&#39;t even try to look for subpackages. So specification and<br>
implementation really match here - it&#39;s not just an implementation<br>
bug.<br></blockquote><div><br></div><div>Right - you found a bug in the spec, in that it should either explicitly amend the from-import algorithm to treat the first import the same as an AttributeError, or else say, &quot;use &#39;import zope.interface as interface&#39; instead&quot;.</div>
<div> </div></div>