diff options
author | Petr Viktorin <encukou@gmail.com> | 2023-05-04 07:56:53 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-04 07:56:53 (GMT) |
commit | cd9a56c2b0e14f56f2e83dd4db43c5c69a74b232 (patch) | |
tree | ff971ebbdb11701bab003d743a6d5b928c35184f /Include/descrobject.h | |
parent | 35d273825abc319d0ecbd69110e847f6040d0cd7 (diff) | |
download | cpython-cd9a56c2b0e14f56f2e83dd4db43c5c69a74b232.zip cpython-cd9a56c2b0e14f56f2e83dd4db43c5c69a74b232.tar.gz cpython-cd9a56c2b0e14f56f2e83dd4db43c5c69a74b232.tar.bz2 |
gh-103509: PEP 697 -- Limited C API for Extending Opaque Types (GH-103511)
Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net>
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
Diffstat (limited to 'Include/descrobject.h')
-rw-r--r-- | Include/descrobject.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Include/descrobject.h b/Include/descrobject.h index 0a420b8..fd66d17 100644 --- a/Include/descrobject.h +++ b/Include/descrobject.h @@ -83,6 +83,7 @@ struct PyMemberDef { #define Py_READONLY 1 #define Py_AUDIT_READ 2 // Added in 3.10, harmless no-op before that #define _Py_WRITE_RESTRICTED 4 // Deprecated, no-op. Do not reuse the value. +#define Py_RELATIVE_OFFSET 8 PyAPI_FUNC(PyObject *) PyMember_GetOne(const char *, PyMemberDef *); PyAPI_FUNC(int) PyMember_SetOne(char *, PyMemberDef *, PyObject *); |