diff options
author | Victor Stinner <vstinner@python.org> | 2022-04-21 14:01:47 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-21 14:01:47 (GMT) |
commit | 1a2b282f201073d5153e737568c833af6f1b349e (patch) | |
tree | 81040c44144273aa43c8ad8e5420871b40f6f871 /Include/unicodeobject.h | |
parent | f2b4e458b3327130e46edb4efe8e1847de09efc5 (diff) | |
download | cpython-1a2b282f201073d5153e737568c833af6f1b349e.zip cpython-1a2b282f201073d5153e737568c833af6f1b349e.tar.gz cpython-1a2b282f201073d5153e737568c833af6f1b349e.tar.bz2 |
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 'Include/unicodeobject.h')
0 files changed, 0 insertions, 0 deletions