]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] GH-141312: Allow only integers to longrangeiter_setstate state (GH-141317...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 15 Nov 2025 19:30:25 +0000 (20:30 +0100)
committerGitHub <noreply@github.com>
Sat, 15 Nov 2025 19:30:25 +0000 (21:30 +0200)
commit79c136f87b20f9debb4ab846a50cfb7b7fc5153d
tree5a4205c580b952be3fbb0d3267095299b694ebe1
parent21e43d5e8343f356f12d6450a00b3c1e66f66bab
[3.14] GH-141312: Allow only integers to longrangeiter_setstate state (GH-141317) (GH-141559)

This fixes an assertion error when the new computed start is not an integer.
(cherry picked from commit 10bec7c1eb3ee27f490a067426eef452b15f78f9)

Co-authored-by: Sergey Miryanov <sergey.miryanov@gmail.com>
Lib/test/test_range.py
Misc/NEWS.d/next/Core_and_Builtins/2025-11-10-23-07-06.gh-issue-141312.H-58GB.rst [new file with mode: 0644]
Objects/rangeobject.c