This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author gregory.p.smith
Recipients gregory.p.smith, iamsav, nadeem.vawda, zmk
Date 2022-03-19.22:35:31
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1647729331.98.0.130749484731.issue38256@roundup.psfhosted.org>
In-reply-to
Content
it depends on the build.  USE_ZLIB_CRC32 causes it due to zlib's 32-bitness as noted my marko.

$ ./python 
Python 3.11.0a6+ (heads/main-dirty:b3f2d4c8ba, Mar 19 2022, 15:32:04) [GCC 9.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import binascii, zlib
>>> bigdata=memoryview(bytearray((1<<32) + 100))
>>> 
>>> print(binascii.crc32(bigdata))
2575877834
>>> crc = binascii.crc32(bigdata[:1000])
>>> crc = binascii.crc32(bigdata[1000:], crc)
>>> print(crc)
2838121701
>>> 
>>> print(zlib.crc32(bigdata))
2838121701
>>> crc = zlib.crc32(bigdata[:1000])
>>> crc = zlib.crc32(bigdata[1000:], crc)
>>> print(crc)
2838121701
>>>
History
Date User Action Args
2022-03-19 22:35:32gregory.p.smithsetrecipients: + gregory.p.smith, nadeem.vawda, zmk, iamsav
2022-03-19 22:35:31gregory.p.smithsetmessageid: <1647729331.98.0.130749484731.issue38256@roundup.psfhosted.org>
2022-03-19 22:35:31gregory.p.smithlinkissue38256 messages
2022-03-19 22:35:31gregory.p.smithcreate