[Zope-dev] Zope object oid's

Jason Spisak 444@hiretechs.com
Fri, 12 May 2000 15:38:39 GMT


Greg Ward writes:

> 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.
> 

That's what was needed.  Thanks.

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

Let him who has never conflated make the first slap. ;)

>         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
> 

All my best,

Jason Spisak
CIO
HireTechs.com
6151 West Century Boulevard
Suite 900
Los Angeles, CA 90045
P. 310.665.3444
F. 310.665.3544

Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email
address may not be added to any commercial mail list with out my
permission.  Violation of my privacy with advertising or SPAM will
result in a suit for a MINIMUM of $500 damages/incident, $1500 for
repeats.