]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] gh-144330: Initialize classmethod and staticmethod in new (#144498)
authorVictor Stinner <vstinner@python.org>
Fri, 6 Feb 2026 09:21:02 +0000 (10:21 +0100)
committerGitHub <noreply@github.com>
Fri, 6 Feb 2026 09:21:02 +0000 (10:21 +0100)
commit160810de89477836f2fde7139f7ab0670399efff
treec9b7f6175e14743ddd8cd2324dd4a68ee17324da
parentf4239df276a23277c37f449bc8633b3ecd40fa06
[3.14] gh-144330: Initialize classmethod and staticmethod in new (#144498)

gh-144330: Initialize classmethod and staticmethod in new

Initialize cm_callable and sm_callable to None in classmethod and
staticmethod constructor.

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