instance comparison
Fredrik Lundh
fredrik at pythonware.com
Thu Jul 24 06:13:01 EDT 2008
King wrote:
> The only methods I do have in class is __init__ and __str__.
> How ever inst1 and inst2 is coming from a dictionary where I stored
> them with a unique id.
>
> inst1 = stored[id]
> inst2 = stored[id]
>
> Is this makes a difference?
unlikely (well, if that's the literal code, both variables will point to
the same variable, but I guess that's not what you meant).
> I will rip down the piece of code giving me problem and post.
please do. and don't be surprised if you find the problem while doing
so ;-)
</F>
More information about the Python-list
mailing list