Message400360
Consider the following:
>>> it = iter(range(2**32 + 2))
>>> for _ in range(2**32):
... _ = next(it)
>>> it2 = pickle.loads(
... pickle.dumps(it)
... )
>>> assert next(it) == next(it2)
This assert currently fails because the reduce method for range iterator objects serializes to `int` instead of `long`.
(note that running this example might take tens of minutes on your box) |
|
Date |
User |
Action |
Args |
2021-08-26 16:42:14 | lukasz.langa | set | recipients:
+ lukasz.langa |
2021-08-26 16:42:14 | lukasz.langa | set | messageid: <1629996134.04.0.676364219847.issue45018@roundup.psfhosted.org> |
2021-08-26 16:42:14 | lukasz.langa | link | issue45018 messages |
2021-08-26 16:42:13 | lukasz.langa | create | |
|