[issue7555] Wrong return value of isinstance() function

Mark Dickinson report at bugs.python.org
Mon Dec 21 11:58:52 CET 2009


Mark Dickinson <dickinsm at gmail.com> added the comment:

While I agree it's confusing, I think this is working as designed.  The 
problem is coming from the circular import.  If you add a "print id(ss)" 
between the definition of class ss and the "if __name__ == '__main__'" 
you'll see that ss ends up being defined twice.  s is an instance of one 
of the ss classes, but not the other.

See 

http://effbot.org/zone/import-confusion.htm

for more.

----------
nosy: +mark.dickinson
resolution:  -> invalid
status: open -> closed

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


More information about the Python-bugs-list mailing list