diff options
| author | Petr Viktorin <encukou@gmail.com> | 2020-05-07 15:39:59 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-05-07 15:39:59 +0200 |
| commit | e1becf46b4e3ba6d7d32ebf4bbd3e0804766a423 (patch) | |
| tree | be3fda5019edbdc78e82ee21985ea963686f3eb8 /Include/cpython/object.h | |
| parent | 4638c6429575bd6de26b12b2af5df74d6568b553 (diff) | |
| download | cpython-git-e1becf46b4e3ba6d7d32ebf4bbd3e0804766a423.tar.gz | |
bpo-38787: C API for module state access from extension methods (PEP 573) (GH-19936)
Module C state is now accessible from C-defined heap type methods (PEP 573).
Patch by Marcel Plch and Petr Viktorin.
Co-authored-by: Marcel Plch <mplch@redhat.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
Diffstat (limited to 'Include/cpython/object.h')
| -rw-r--r-- | Include/cpython/object.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Include/cpython/object.h b/Include/cpython/object.h index 45da752ed2..8bf05a3271 100644 --- a/Include/cpython/object.h +++ b/Include/cpython/object.h @@ -289,6 +289,7 @@ typedef struct _heaptypeobject { PyBufferProcs as_buffer; PyObject *ht_name, *ht_slots, *ht_qualname; struct _dictkeysobject *ht_cached_keys; + PyObject *ht_module; /* here are optional user slots, followed by the members. */ } PyHeapTypeObject; |
