Searched refs:CustomObject (Results 1 – 5 of 5) sorted by relevance
/external/python/cpython3/Doc/includes/ |
D | custom4.c | 10 } CustomObject; typedef 13 Custom_traverse(CustomObject *self, visitproc visit, void *arg) in Custom_traverse() 21 Custom_clear(CustomObject *self) in Custom_clear() 29 Custom_dealloc(CustomObject *self) in Custom_dealloc() 39 CustomObject *self; in Custom_new() 40 self = (CustomObject *) type->tp_alloc(type, 0); in Custom_new() 58 Custom_init(CustomObject *self, PyObject *args, PyObject *kwds) in Custom_init() 84 {"number", T_INT, offsetof(CustomObject, number), 0, 90 Custom_getfirst(CustomObject *self, void *closure) in Custom_getfirst() 97 Custom_setfirst(CustomObject *self, PyObject *value, void *closure) in Custom_setfirst() [all …]
|
D | custom3.c | 10 } CustomObject; typedef 13 Custom_dealloc(CustomObject *self) in Custom_dealloc() 23 CustomObject *self; in Custom_new() 24 self = (CustomObject *) type->tp_alloc(type, 0); in Custom_new() 42 Custom_init(CustomObject *self, PyObject *args, PyObject *kwds) in Custom_init() 68 {"number", T_INT, offsetof(CustomObject, number), 0, 74 Custom_getfirst(CustomObject *self, void *closure) in Custom_getfirst() 81 Custom_setfirst(CustomObject *self, PyObject *value, void *closure) in Custom_setfirst() 101 Custom_getlast(CustomObject *self, void *closure) in Custom_getlast() 108 Custom_setlast(CustomObject *self, PyObject *value, void *closure) in Custom_setlast() [all …]
|
D | custom2.c | 10 } CustomObject; typedef 13 Custom_dealloc(CustomObject *self) in Custom_dealloc() 23 CustomObject *self; in Custom_new() 24 self = (CustomObject *) type->tp_alloc(type, 0); in Custom_new() 42 Custom_init(CustomObject *self, PyObject *args, PyObject *kwds) in Custom_init() 68 {"first", T_OBJECT_EX, offsetof(CustomObject, first), 0, 70 {"last", T_OBJECT_EX, offsetof(CustomObject, last), 0, 72 {"number", T_INT, offsetof(CustomObject, number), 0, 78 Custom_name(CustomObject *self, PyObject *Py_UNUSED(ignored)) in Custom_name() 102 .tp_basicsize = sizeof(CustomObject),
|
D | custom.c | 7 } CustomObject; typedef 13 .tp_basicsize = sizeof(CustomObject),
|
/external/python/cpython3/Doc/extending/ |
D | newtypes_tutorial.rst | 53 #. What a :class:`Custom` **object** contains: this is the ``CustomObject`` 65 } CustomObject; 93 .tp_basicsize = sizeof(CustomObject), 134 .tp_basicsize = sizeof(CustomObject), 259 } CustomObject; 265 Custom_dealloc(CustomObject *self) 286 ``Custom_dealloc`` to take a ``CustomObject *`` argument, but the ``tp_dealloc`` 297 CustomObject *self; 298 self = (CustomObject *) type->tp_alloc(type, 0); 341 self = (CustomObject *) type->tp_alloc(type, 0); [all …]
|