[issue7555] Wrong return value of isinstance() function
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.
resolution: -> invalid
status: open -> closed
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list