Message415578
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
>>> |
|
Date |
User |
Action |
Args |
2022-03-19 22:35:32 | gregory.p.smith | set | recipients:
+ gregory.p.smith, nadeem.vawda, zmk, iamsav |
2022-03-19 22:35:31 | gregory.p.smith | set | messageid: <1647729331.98.0.130749484731.issue38256@roundup.psfhosted.org> |
2022-03-19 22:35:31 | gregory.p.smith | link | issue38256 messages |
2022-03-19 22:35:31 | gregory.p.smith | create | |
|