[Python-3000] zlib.crc32 - signed or unsigned?

"Martin v. Löwis" martin at v.loewis.de
Thu Mar 20 02:30:25 CET 2008


Christian Heimes schrieb:
> In Python 3.0 the unit test for zlib is broken because in 3.0 
> zlib.crc32() returns an unsigned long. But in Python 2.x it's a signed int.
> 
> How should the issue be solved? I think the unsigned long is wrong.

Here at the sprint people agreed that crc32 *obviously* gives
an unsigned number.

It's unfortunate that Python 2.6 can't really implement that
very well, hence we have to keep the 2.x behavior in 2.6.
In 3k, it should change.

Regards,
Martin


More information about the Python-3000 mailing list