Comparing 2 class types

jepler epler jepler.lnk at lnk.ispi.net
Fri Jul 7 09:03:08 EDT 2000


On Fri, 07 Jul 2000 12:29:31 GMT, Arinté
 <shouldbe at message.com> wrote:
>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.
>
>
isinstance()

Jeff



More information about the Python-list mailing list