Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update Modules/_ctypes/_ctypes.c
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
  • Loading branch information
aisk and erlend-aasland authored Jan 3, 2024
commit 04cf63f5eedfdd4697934aaafb0f7511d7739f1b
4 changes: 3 additions & 1 deletion Modules/_ctypes/_ctypes.c
Original file line number Diff line number Diff line change
Expand Up @@ -2464,12 +2464,14 @@ PyCFuncPtrType_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
}

static PyType_Slot pycfuncptr_type_slots[] = {
{Py_sq_repeat, CDataType_repeat},
{Py_tp_doc, PyDoc_STR("metatype for C function pointers")},
{Py_tp_traverse, CDataType_traverse},
{Py_tp_clear, CDataType_clear},
{Py_tp_methods, CDataType_methods},
{Py_tp_new, PyCFuncPtrType_new},

// Sequence protocol.
{Py_sq_repeat, CDataType_repeat},
{0, NULL},
};

Expand Down