[Python-Dev] a strange case

Fred L. Drake, Jr. fdrake@acm.org
Fri, 16 May 2003 14:36:44 -0400


Here's a strange case we just ran across, led along by a typo in an
import statement.  This is using the head of the 2.2.x maintenance
branch; I've not tested this against the trunk yet.

>>> import os
>>> class Foo(os):
...   pass
...
>>> Foo
<module '?' (built-in)>

I suspect this isn't intentional behavior.  ;-)


  -Fred

-- 
Fred L. Drake, Jr.  <fdrake at acm.org>
PythonLabs at Zope Corporation