Debian Codegraph @

Modules/_testcapi/set.c

raw
1 #include "parts.h"
2 #include "util.h"
3
4 static PyObject *
5 set_get_size(PyObject *self, PyObject *obj)
6 {
7 NULLABLE(obj);
8 RETURN_SIZE(PySet_GET_SIZE(obj));
9 }
10
11 static PyMethodDef test_methods[] = {
12 {"set_get_size", set_get_size, METH_O},
13
14 {NULL},
15 };
16
17 int
18 _PyTestCapi_Init_Set(PyObject *m)
19 {
20 if (PyModule_AddFunctions(m, test_methods) < 0) {
21 return -1;
22 }
23
24 return 0;
25 }