Comparing 2 class types

Arinté shouldbe at message.com
Fri Jul 7 08:29:31 EDT 2000


How can you know if a 2 variables are different instances of the same class?
x = someclass()
y= someclass()
I tried is, type, and type(x)  is someclass, but none seem to work unless I
did it wrong.





More information about the Python-list mailing list