Importing Self

Kragen Sitaker kragen at pobox.com
Sat May 25 14:14:51 EDT 2002


zayats at blue.seas.upenn.edu (Salim Zayat) writes:
> But, when I import the module itself, then say:
> 
> isinstance(path.filename.Error)
> 
> it works fine.  Why is this?  What are these sort of problems indicituve of?

I'm having a hard time understanding what you're saying, but I suspect
you might be running a module as the main program (module __main__)
and also importing it, and being surprised that the two instances are
not the same.




More information about the Python-list mailing list