¡@

Home 

python Programming Glossary: pyarg_parsetuple

Why does str.split not take keyword arguments?

http://stackoverflow.com/questions/11716687/why-does-str-split-not-take-keyword-arguments

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

SequenceObject self PyObject args PyObject kwds if PyArg_ParseTuple args k self max return 1 return 0 static PyObject Sequence_data.. SequenceObject self PyObject args PyObject kwds if PyArg_ParseTuple args k self max return 1 return 0 static PyObject Sequence_data.. PyObject self PyObject args long int m spam_MyIter p if PyArg_ParseTuple args l m return NULL I don't need python callable __init__ method..

How to expose std::vector<int> as a Python list using SWIG?

http://stackoverflow.com/questions/276769/how-to-expose-stdvectorint-as-a-python-list-using-swig

iter2 0 int res2 PyObject obj0 0 PyObject obj1 0 if PyArg_ParseTuple args char OO IntVector_erase &obj0 &obj1 SWIG_fail res1 SWIG_ConvertPtr..

How do you extend python with C++?

http://stackoverflow.com/questions/2847617/how-do-you-extend-python-with-c

static PyObject Flp_demo FlpObject self PyObject args if PyArg_ParseTuple args return NULL Py_INCREF Py_None return Py_None static PyMethodDef.. flp_foo PyObject self PyObject args long i j long res if PyArg_ParseTuple args ll i j return NULL res i j flpX Do something here return.. flp_new PyObject self PyObject args FlpObject rv if PyArg_ParseTuple args return NULL rv newFlpObject args if rv NULL return NULL..

Accessing the underlying struct of a PyObject

http://stackoverflow.com/questions/3436730/accessing-the-underlying-struct-of-a-pyobject

set_point PyObject self PyObject args PyObject point if PyArg_ParseTuple args O point return NULL code to access my_point python c.. c pointers structure share improve this question Your PyArg_ParseTuple should not use format O but O see the docs O object typeobject.. set_point PyObject self PyObject args PyObject point if PyArg_ParseTuple args O PointType point return NULL Point pp PointObject point..

How can I optimize this Python code?

http://stackoverflow.com/questions/788084/how-can-i-optimize-this-python-code

self Pyobject args int length const char word1 word2 if PyArg_ParseTuple args ss word1 word2 length return NULL int i int different 0..