Mark Dickinson <dicki...@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 <rep...@bugs.python.org> <http://bugs.python.org/issue7555> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com