[ZODB-Dev] oids, numbers, hex and 8-byte strings

Chris Withers chris at simplistix.co.uk
Thu Oct 27 11:52:36 EDT 2005


Tim Peters wrote:
> no inverse for oid_repr, and there isn't a need for one.  For any 8-byte
> string oid S,
> 
>     p64(int(oid_repr(S), 0)) == S
> 
> so that's how to "get an inverse" of oid_repr if you really want one
> (although I don't know why anyone would).

...'cos oid_repr is what gets used to log those "Shouldn't load state 
for" errors, so I needed to take something from oid_repr and trun it 
into something I could try and use with app._p_jar[...]

> +1 on better documention:  improve docstrings, add comments, add overviews.
> If anyone's worried about it, adding comments does not increase Python's
> runtime <wink>.

Thanks, so trunk, and which branches again for this?

cheers,

Chris

-- 
Simplistix - Content Management, Zope & Python Consulting
            - http://www.simplistix.co.uk


More information about the ZODB-Dev mailing list