[Zope-dev] Zope object oid's

Greg Ward gward@mems-exchange.org
Fri, 12 May 2000 09:04:40 -0400


On 12 May 2000, Jason Spisak said:
> > oid = object._p_oid
> 
> What is this supposed to return? str() on it returns a one-character long
> string.

Try repr() on that string -- it's actually an eight-character string,
but most of the characters are zero unless you have a *lot* of objects
in your database.  I assume that it's just a 64-bit number represented
as an 8-byte string.

(Now, somebody slap me for conflating bytes and characters...sigh...)

        Greg
-- 
Greg Ward - software developer                gward@mems-exchange.org
MEMS Exchange / CNRI                           voice: +1-703-262-5376
Reston, Virginia, USA                            fax: +1-703-262-5367