]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] GH-141312: Allow only integers to longrangeiter_setstate state (GH-141317...
authorSergey Miryanov <sergey.miryanov@gmail.com>
Sat, 15 Nov 2025 19:14:17 +0000 (00:14 +0500)
committerGitHub <noreply@github.com>
Sat, 15 Nov 2025 19:14:17 +0000 (21:14 +0200)
commitcbeada9ec76e6edd7939eef95af0db35faeae50c
tree333a3526bfc79a2fd16e573effde616543f2fb79
parentb693037040f8611e06434e6ef917ad6a62f97051
[3.13] GH-141312: Allow only integers to longrangeiter_setstate state (GH-141317) (GH-141568)

This fixes an assertion error when the new computed start is not an integer.
(cherry picked from commit 10bec7c1eb3ee27f490a067426eef452b15f78f9)
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