ZODB.Persistent Objects.OID

Documentation
Every object managed by the database has a unique identifier within the database. In ZODB 3, object identifiers are 8-byte strings. The string consisting of 8 null bytes is reserved for the system root object. Assignment of other ids is storage defined, however, it is expected that object ids will be interpreted as packed little-endian 64-bit unsigned integers that will be assigned more or less sequentially. Applications may display object ids as long integers, as follows:

int_oid = struct.unpack(� int_oid = (int_oid[0] << 32) + int_oid[1]