doc.mefi...@gmail.com writes:
> I'm trying to debug and find my error. It goes wrong when:
> PyObject *v;
> v = va_arg(*p_va, PyObject *);
> if (v != NULL) {
> if (*(*p_format - 1) != 'N')
> Py_INCREF(v);
> }
>
> it tries to
doc.mefi...@gmail.com schrieb am 07.06.2015 um 10:56:
> And I can't use Cython, because I have C++ module, and I have to use it.
That's not a valid reason. Cython supports C++ code just fine.
http://docs.cython.org/src/userguide/wrapping_CPlusPlus.html
Stefan
--
https://mail.python.org/mailma
> >And I can't use Cython, because I have C++ module, and I have to use it.
> >--
> >https://mail.python.org/mailman/listinfo/python-list
>
> Are you using Boost?
> http://www.boost.org/doc/libs/1_58_0/libs/python/doc/
>
> It handles lots of the setup for you.
>
> Laura
No, I'm not using Boost
In a message of Sun, 07 Jun 2015 01:56:47 -0700, doc.mefi...@gmail.com writes:
>And I can't use Cython, because I have C++ module, and I have to use it.
>--
>https://mail.python.org/mailman/listinfo/python-list
Are you using Boost?
http://www.boost.org/doc/libs/1_58_0/libs/python/doc/
It handles
I'm trying to debug and find my error. It goes wrong when:
PyObject *v;
v = va_arg(*p_va, PyObject *);
if (v != NULL) {
if (*(*p_format - 1) != 'N')
Py_INCREF(v);
}
it tries to PyINCREF to my passed callback.
--
https://mail
And I can't use Cython, because I have C++ module, and I have to use it.
--
https://mail.python.org/mailman/listinfo/python-list
No, myclass is not null. I think my style of passing arguments is wrong.
--
https://mail.python.org/mailman/listinfo/python-list
doc.mefi...@gmail.com writes:
> Hi. I'm a newbie in python. But I want embed it in my C program.
>
> There is such method of my class:
> @staticmethod
> def install_instr_callback(callback):
> # set hook for every change of PC
> m68k.set_instr_hook_callback(callback)
>
> And in my C code t
Hi. I'm a newbie in python. But I want embed it in my C program.
There is such method of my class:
@staticmethod
def install_instr_callback(callback):
# set hook for every change of PC
m68k.set_instr_hook_callback(callback)
And in my C code there is such callback function:
static PyObject