]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
GH-100242: bring functools.py partial implementation more in line with C code (GH...
authorCF Bolz-Tereick <cfbolz@gmx.de>
Wed, 17 Apr 2024 13:34:46 +0000 (15:34 +0200)
committerGitHub <noreply@github.com>
Wed, 17 Apr 2024 13:34:46 +0000 (15:34 +0200)
commit5a0209fc23de113747058858a4d2e5fc8213711e
treeea320818fa9581aac251d08bbe96cee51f625e04
parent8e36cb7bb2a6057445975d46169f23a719909917
GH-100242: bring functools.py partial implementation more in line with C code (GH-100244)

in partial.__new__, before checking for the existence of the attribute
'func', first check whether the argument is an instance of partial.
Lib/functools.py
Lib/test/test_functools.py
Misc/NEWS.d/next/Library/2022-12-14-15-53-38.gh-issue-100242.Ny7VUO.rst [new file with mode: 0644]
Modules/_functoolsmodule.c