]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-132775: Fix _PyFunctIon_VerifyStateless() (#134900)
authorEric Snow <ericsnowcurrently@gmail.com>
Thu, 29 May 2025 20:13:12 +0000 (14:13 -0600)
committerGitHub <noreply@github.com>
Thu, 29 May 2025 20:13:12 +0000 (20:13 +0000)
commitdafd14146f7ca18932894ea445a2f9f98f2a8b01
tree01fe99f7d547d905a12c72be67062925ed03ff87
parentd96343679fd6137c9d87d1bb120228b162ea0f8c
gh-132775: Fix _PyFunctIon_VerifyStateless() (#134900)

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.
Objects/funcobject.c