Re: My extension code generator for C++

2010-07-03 Thread Stefan Behnel
Rouslan Korneychuk, 03.07.2010 19:22: The code also never uses PyArg_ParseTuple or its variants. It converts every argument using the appropriate PyX_FromY functions. I noticed PyBindGen does the following when a conversion is needed for one argument: py_retval = Py_BuildValue((char *) "(O)", va

Re: My extension code generator for C++

2010-07-03 Thread Rouslan Korneychuk
I missed one: func="operator[]" would also work, I assume? Yes, you can also supply a function if the first parameter accepts the type being wrapped (__rop__ methods will even accept the second parameter taking the wrapped type). -- http://mail.python.org/mailman/listinfo/python-list

Re: My extension code generator for C++

2010-07-03 Thread Rouslan Korneychuk
On 07/03/2010 01:54 PM, Thomas Jollans wrote: On 07/03/2010 07:22 PM, Rouslan Korneychuk wrote: It's still in the rough, but I wanted to give an update on my C++ extension generator. It's available at http://github.com/Rouslan/PyExpose Question that pops to mind immediately: How does this diff

Re: My extension code generator for C++

2010-07-03 Thread Thomas Jollans
On 07/03/2010 07:22 PM, Rouslan Korneychuk wrote: > It's still in the rough, but I wanted to give an update on my C++ > extension generator. It's available at http://github.com/Rouslan/PyExpose Question that pops to mind immediately: How does this differentiate itself from SWIG? ( I can't say I'm

My extension code generator for C++

2010-07-03 Thread Rouslan Korneychuk
It's still in the rough, but I wanted to give an update on my C++ extension generator. It's available at http://github.com/Rouslan/PyExpose The documentation is a little slim right now but there is a comprehensive set of examples in test/test_kompile.py (replace the k with a c. For some reason