[Python-Dev] How to test this? (original) (raw)

Martin v. L�wis martin@v.loewis.de
06 May 2003 00:03:00 +0200


Skip Montanaro <skip@pobox.com> writes:

It appears the database itself accounts for the endianness of the file. I copied my test db file from my Mac to a Linux PC. struct.unpack("=l", f.read(4)) showed different values on the two systems (0x61561 vs 0x61150600) but bsddb185 on both systems could read the file. This is a very nice property of Berkeley DB in general.

That's good to hear. I thought I understood a report on the Subversion mailing list that you can't move databases across endianesses, but that might have been an unrelated issue.

Regards, Martin