Home
last modified time | relevance | path

Searched refs:Shoddy (Results 1 – 2 of 2) sorted by relevance

/external/python/cpython2/Doc/includes/
Dshoddy.c6 } Shoddy; typedef
10 Shoddy_increment(Shoddy *self, PyObject *unused) in Shoddy_increment()
24 Shoddy_init(Shoddy *self, PyObject *args, PyObject *kwds) in Shoddy_init()
37 sizeof(Shoddy), /* tp_basicsize */
/external/python/cpython2/Doc/extending/
Dnewtypes.rst824 In this example we will create a :class:`Shoddy` type that inherits from the
830 >>> s = shoddy.Shoddy(range(3))
848 } Shoddy;
854 When a Python object is a :class:`Shoddy` instance, its *PyObject\** pointer can
855 be safely cast to both *PyListObject\** and *Shoddy\**. ::
858 Shoddy_init(Shoddy *self, PyObject *args, PyObject *kwds)
874 When filling out the :c:func:`PyTypeObject` for the :class:`Shoddy` type, you see
888 m = Py_InitModule3("shoddy", NULL, "Shoddy module");
893 PyModule_AddObject(m, "Shoddy", (PyObject *) &ShoddyType);