]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] gh-132775: Fix _PyFunctIon_VerifyStateless() (gh-134901)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 29 May 2025 20:55:42 +0000 (22:55 +0200)
committerGitHub <noreply@github.com>
Thu, 29 May 2025 20:55:42 +0000 (20:55 +0000)
commit9c2e0febb481f1c24a6397d3a4fb9422c9433ef4
treed9f66f04efceaf3da70b0479c23e79fe357bd72b
parent4670dddbf6bb440143bcad36af3a708b5a747e4a
[3.14] gh-132775: Fix _PyFunctIon_VerifyStateless() (gh-134901)

gh-132775: Fix _PyFunctIon_VerifyStateless() ()

The problem we're fixing here is that we were using PyDict_Size() on "defaults",
which it is actually a tuple.  We're also adding some explicit type checks.

This is a follow-up to gh-133221/gh-133528.

(cherry picked from commit dafd14146f7, AKA gh-134900)

Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
Objects/funcobject.c