python Programming Glossary: pytypeobject
How to create a generator/iterator with the Python C API? http://stackoverflow.com/questions/1815812/how-to-create-a-generator-iterator-with-the-python-c-api 0 sequence.max . NULL Sentinel Define new object type PyTypeObject Sequence_Type PyObject_HEAD_INIT NULL 0 ob_size Sequence tp_name.. free self callbackInfo self ob_type tp_free PyObject self PyTypeObject Generator_Type PyObject_HEAD_INIT NULL 0 ob_size Generator.. 0 sequence.max . NULL Sentinel Define new object type PyTypeObject Sequence_Type PyObject_HEAD_INIT NULL 0 ob_size Sequence tp_name..
How do you extend python with C++? http://stackoverflow.com/questions/2847617/how-do-you-extend-python-with-c self char name PyObject v DL_EXPORT void initflp static PyTypeObject Flp_Type The ob_type field must be initialized in the module.. self char name PyObject v DL_EXPORT void initflp static PyTypeObject Flp_Type The ob_type field must be initialized in the module..
Accessing the underlying struct of a PyObject http://stackoverflow.com/questions/3436730/accessing-the-underlying-struct-of-a-pyobject struct PyObject_HEAD Point my_point PointObject static PyTypeObject PointType PyObject_HEAD_INIT NULL 0 ob_size point tp_name..
Python (and Python C API): __new__ versus __init__ http://stackoverflow.com/questions/4859129/python-and-python-c-api-new-versus-init to an empty string like so static PyObject Noddy_new PyTypeObject type PyObject args PyObject kwds ..... self first PyString_FromString..
|