[Python-Dev] Converting crc32 functions to use unsigned

2006年5月30日 10:37:13 -0700

It seems that we should convert the crc32 functions in binascii, 
zlib, etc. to deal with unsigned integers. Currently it seems that 32- 
bit and 64-bit platforms are going to have different results for 
these functions.
Should we do the same as the struct module, and do DeprecationWarning 
when the input value is < 0? Do we have a PyArg_ParseTuple format 
code or a converter that would be suitable for this purpose?
None of the unit tests seem to exercise values where 32-bit and 64- 
bit platforms would have differing results, but that's easy enough to 
fix...
-bob
_______________________________________________
Python-Dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to