]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-104469: Convert _testcapi/watchers.c to use Argument Clinic (#104503)
authorNikita Sobolev <mail@sobolevn.me>
Mon, 15 May 2023 20:59:41 +0000 (23:59 +0300)
committerGitHub <noreply@github.com>
Mon, 15 May 2023 20:59:41 +0000 (22:59 +0200)
commit456d56698db6c6287500f591927c900a5f5221ca
tree81f2a3767f4536692e62b75f5d34749c6fdb09ee
parent8a3702f0c79e5a99fcef61e35724f4b9ea3453b8
gh-104469: Convert _testcapi/watchers.c to use Argument Clinic (#104503)

Remove boilerplate code by converting the following functions:

- _testcapi.watch_dict
- _testcapi.unwatch_dict
- _testcapi.watch_type
- _testcapi.unwatch_type
- _testcapi.set_func_defaults_via_capi
- _testcapi.set_func_kwdefaults_via_capi
Modules/_testcapi/clinic/watchers.c.h [new file with mode: 0644]
Modules/_testcapi/watchers.c