[ZODB-Dev] Persistent unhashable?
Christian Robottom Reis
kiko@async.com.br
Thu, 5 Jul 2001 13:51:06 -0300 (BRT)
On Thu, 5 Jul 2001, Greg Ward wrote:
> Neither, really: _p_oid (along with the other magical ZODB attributes)
> never actually appears in an object's __dict__. (Seems sensible to me,
> since they are magical.) However, I have never seen an AttributeError
Right. :-)
> from accessing _p_oid on a Persistent object -- so presumably the
> persistence machinery either supplies None (for objects not yet "in the
> database") or an 8-byte string (for objects with an OID).
It supplies None, I've just tested, and the string when set.
> Here is our intermediary class that all persistent classes must derive
> from (docstrings and comments removed):
Not a lot to comment and docstring :-) My class looked _exactly_ like
yours.
> constructor does is call its superclass constructor, there's no point:
> that's what Python would do for you if it doesn't find a constructor.
News to me. Duh. Thanks.
Take care,
--
/\/\ Christian Reis, Senior Engineer, Async Open Source, Brazil
~\/~ http://async.com.br/~kiko/ | [+55 16] 274 4311