]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-144330: Initialize classmethod and staticmethod in new (GH-144498) (#144537)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 6 Feb 2026 09:48:55 +0000 (10:48 +0100)
committerGitHub <noreply@github.com>
Fri, 6 Feb 2026 09:48:55 +0000 (09:48 +0000)
commitb6c6cd632115a38b0a58aa03a90deff7fb2a1295
tree1fed22214547085b9637667b346311e1d2a12178
parent7d04956d4a99cf420bfc0f491d752fd5b63b3413
[3.13] gh-144330: Initialize classmethod and staticmethod in new (GH-144498) (#144537)

[3.14] gh-144330: Initialize classmethod and staticmethod in new (GH-144498)

gh-144330: Initialize classmethod and staticmethod in new

Initialize cm_callable and sm_callable to None in classmethod and
staticmethod constructor.
(cherry picked from commit 160810de89477836f2fde7139f7ab0670399efff)

Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Aniket Singh Yadav <singhyadavaniket43@gmail.com>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Lib/test/test_descr.py
Objects/funcobject.c