]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] gh-142433: Move deref to below the error when checking for laststring (GH...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 10 Dec 2025 16:07:59 +0000 (17:07 +0100)
committerGitHub <noreply@github.com>
Wed, 10 Dec 2025 16:07:59 +0000 (16:07 +0000)
commit36d4f67b3cc97df8fb46f15e300719cc02cc496f
tree4efae5cdc4c938f81962c549edd2557d8fa97c29
parent0114178911f8713bfcb935ff5542fe61b4a5d551
[3.14] gh-142433: Move deref to below the error when checking for laststring (GH-142402) (#142524)

gh-142433: Move deref to below the error when checking for laststring (GH-142402)

Move deref of laststring to below the error checking so the deref
is applied after the object in strings is replaced.
(cherry picked from commit 785268fdceb0d0fe217aed1d6e43e0231c0e50c3)

Co-authored-by: AZero13 <gfunni234@gmail.com>
Misc/NEWS.d/next/Core_and_Builtins/2025-12-08-17-34-57.gh-issue-142402.iV0ON3.rst [new file with mode: 0644]
Objects/templateobject.c