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

2005-11-03 Thread Dieter Maurer
Tim Peters wrote at 2005-11-1 15:00 -0500: ... I don't want to see any renaming, or aliasing, until the docs (comments docstrings) are clear. Usually, I am convinced that well chosen names form the largest part of the required documentation. That's why I sometimes call things bugs (do not

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

2005-11-02 Thread Dieter Maurer
Chris Withers wrote at 2005-10-25 13:11 +0100: ... The alias I suggested is purely to mirror that of the oid_repr function, and I would include it directly above of below the oid_repr function with bigger documentation clues for blind people like me ;-) Does anyone have any non-pedantic

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

2005-10-27 Thread Chris Withers
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

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

2005-10-27 Thread Tim Peters
[Tim] There is 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). [Chris] ...'cos oid_repr is what gets used

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

2005-10-25 Thread Jim Fulton
Jeremy Hylton wrote: On 10/25/05, Chris Withers [EMAIL PROTECTED] wrote: Dieter Maurer wrote: def p64(v): Pack an integer or long into a 8-byte string Yes, but for that to be meaningful, you have to know that: - 0xSomething is an integer or long (it read hex number in my head -