On Jun 26, 2006, at 3:16 PM, Florent Guillaume wrote:
On 26 Jun 2006, at 21:11, Robert Gravina wrote:
On 2006/06/27, at 3:49, Benji York wrote:
Robert Gravina wrote:
I just tried loading a persisted object interactively and
noticed that although the _p_oid doesn't print out as anything
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Robert Gravina wrote:
On 2006/06/27, at 3:49, Benji York wrote:
Robert Gravina wrote:
I just tried loading a persisted object interactively and noticed
that although the _p_oid doesn't print out as anything (and hence I
always thought it
def __eq__(self, other):
if isinstance(other, name of my class):
if hasattr(other,_p_oid) and other._p_oid != None
and (other._p_oid == self._p_oid):
return True
else:
return False
and now can compare objects for equality