]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
GH-141312: Allow only integers to longrangeiter_setstate state (GH-141317)
authorSergey Miryanov <sergey.miryanov@gmail.com>
Fri, 14 Nov 2025 14:52:01 +0000 (19:52 +0500)
committerGitHub <noreply@github.com>
Fri, 14 Nov 2025 14:52:01 +0000 (14:52 +0000)
commit10bec7c1eb3ee27f490a067426eef452b15f78f9
treeccac846dad550e102798565e8722c1ccaa382588
parent49e74210cb652d8bd538a4cc887f507396cfc893
GH-141312: Allow only integers to longrangeiter_setstate state (GH-141317)

This fixes an assertion error when the new computed start is not an integer.
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