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 lukasz.langa
Recipients lukasz.langa
Date 2021-08-26.16:42:13
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1629996134.04.0.676364219847.issue45018@roundup.psfhosted.org>
In-reply-to
Content
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)
History
Date User Action Args
2021-08-26 16:42:14lukasz.langasetrecipients: + lukasz.langa
2021-08-26 16:42:14lukasz.langasetmessageid: <1629996134.04.0.676364219847.issue45018@roundup.psfhosted.org>
2021-08-26 16:42:14lukasz.langalinkissue45018 messages
2021-08-26 16:42:13lukasz.langacreate