diff options
| author | Victor Stinner <vstinner@python.org> | 2022-04-21 16:01:47 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-04-21 16:01:47 +0200 |
| commit | 1a2b282f201073d5153e737568c833af6f1b349e (patch) | |
| tree | 81040c44144273aa43c8ad8e5420871b40f6f871 /Objects/codeobject.c | |
| parent | f2b4e458b3327130e46edb4efe8e1847de09efc5 (diff) | |
| download | cpython-git-1a2b282f201073d5153e737568c833af6f1b349e.tar.gz | |
gh-89653: PEP 670: Convert PyWeakref_GET_OBJECT() to function (#91785)
Convert the PyWeakref_GET_OBJECT() macro to a static inline function.
Add an assertion to check the argument with PyWeakref_Check(). Add a
macro converting the argument to PyObject* to prevent emitting new
compiler warning.
Diffstat (limited to 'Objects/codeobject.c')
0 files changed, 0 insertions, 0 deletions
