Hi,

On Sat, Jul 23, 2011 at 7:18 AM, Roger Flores <aide...@yahoo.com> wrote:
> value = binascii.crc32(new_value, value) & 0xffffffff
> value = binascii.crc32(new_value, value) & 0xffffffff

Thanks for the report.  This code doesn't run on top of CPython 2.5,
too, but works indeed on top of CPython 2.7.  We already had troubles
deciding the type of the return value of crc32(), as it's not
consistent on CPython.  Now I see that we have troubles with the
argument too :-)

It seems that crc32() and a few similar functions actually accept
integers of *any* size as argument, and just truncate it.  I'll just
fix it in PyPy to also accept integers of any size.


A bientôt,

Armin.
_______________________________________________
pypy-dev mailing list
pypy-dev@python.org
http://mail.python.org/mailman/listinfo/pypy-dev

Reply via email to