Browse Source
bpo-36922: implement PEP-590 Py_TPFLAGS_METHOD_DESCRIPTOR (GH-13338)
bpo-36922: implement PEP-590 Py_TPFLAGS_METHOD_DESCRIPTOR (GH-13338)
Co-authored-by: Mark Shannon <mark@hotpy.org>pull/13627/head
committed by
Petr Viktorin
10 changed files with 132 additions and 7 deletions
-
26Doc/c-api/typeobj.rst
-
3Include/object.h
-
24Lib/test/test_capi.py
-
3Misc/NEWS.d/next/C API/2019-05-15-10-46-55.bpo-36922.J3EFK_.rst
-
3Modules/_functoolsmodule.c
-
57Modules/_testcapimodule.c
-
6Objects/descrobject.c
-
3Objects/funcobject.c
-
3Objects/object.c
-
11Objects/typeobject.c
@ -0,0 +1,3 @@ |
|||
Add new type flag ``Py_TPFLAGS_METHOD_DESCRIPTOR`` for objects behaving like |
|||
unbound methods. These are objects supporting the optimization given by the |
|||
``LOAD_METHOD``/``CALL_METHOD`` opcodes. See PEP 590. |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue