confused by isinstance()

Jason Orendorff jason at
Fri Feb 1 07:31:38 CET 2002


Try reading and running this little program
and see if it clears anything up for you.

# ===
class X:

if __name__ == '__main__':
    import foo
    import __main__

    print foo is __main__
    print foo.X is __main__.X

## Jason Orendorff

More information about the Python-list mailing list