[issue45018] Pickling a range iterator with an index of over sizeof(int) stores an invalid index

2021-08-28 Thread Łukasz Langa
Change by Łukasz Langa : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ P

[issue45018] Pickling a range iterator with an index of over sizeof(int) stores an invalid index

2021-08-28 Thread miss-islington
miss-islington added the comment: New changeset cd986e903176d28ed795f65ba14e6fcbf2a65e3d by Miss Islington (bot) in branch '3.10': bpo-45018: Fix rangeiter_reduce in rangeobject.c (GH-27938) https://github.com/python/cpython/commit/cd986e903176d28ed795f65ba14e6fcbf2a65e3d -- __

[issue45018] Pickling a range iterator with an index of over sizeof(int) stores an invalid index

2021-08-27 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 02437641d20f58191558ba52570832ef3a30cfef by Miss Islington (bot) in branch '3.9': bpo-45018: Fix rangeiter_reduce in rangeobject.c (GH-27938) (GH-27991) https://github.com/python/cpython/commit/02437641d20f58191558ba52570832ef3a30cfef --

[issue45018] Pickling a range iterator with an index of over sizeof(int) stores an invalid index

2021-08-27 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 2.0 -> 3.0 pull_requests: +26436 pull_request: https://github.com/python/cpython/pull/27990 ___ Python tracker _

[issue45018] Pickling a range iterator with an index of over sizeof(int) stores an invalid index

2021-08-27 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 94a3d2a6329ab7941e93ad2f5bcbb8af2b8b80d2 by chilaxan in branch 'main': bpo-45018: Fix rangeiter_reduce in rangeobject.c (GH-27938) https://github.com/python/cpython/commit/94a3d2a6329ab7941e93ad2f5bcbb8af2b8b80d2 -- _

[issue45018] Pickling a range iterator with an index of over sizeof(int) stores an invalid index

2021-08-27 Thread miss-islington
Change by miss-islington : -- pull_requests: +26437 pull_request: https://github.com/python/cpython/pull/27991 ___ Python tracker ___ __

[issue45018] Pickling a range iterator with an index of over sizeof(int) stores an invalid index

2021-08-26 Thread Jordan Limor
Change by Jordan Limor : -- keywords: +patch nosy: +chilaxan nosy_count: 1.0 -> 2.0 pull_requests: +26424 pull_request: https://github.com/python/cpython/pull/27938 ___ Python tracker

[issue45018] Pickling a range iterator with an index of over sizeof(int) stores an invalid index

2021-08-26 Thread Łukasz Langa
New submission from Łukasz Langa : 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