Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #92327
| From | dieter <dieter@handshake.de> |
|---|---|
| Subject | Re: Embedded Python and C Callback functions |
| Date | 2015-06-08 07:44 +0200 |
| References | <daad7377-7a61-4e9e-a442-4ba48f7212b2@googlegroups.com> <mailman.229.1433656976.13271.python-list@python.org> <3726dccc-76cb-45a2-b0a8-e41ef300be96@googlegroups.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.290.1433742309.13271.python-list@python.org> (permalink) |
doc.mefisto@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 PyINCREF to my passed callback.
This indicates that it expects the "callback" to be a Python object.
Check the C-API specification. It should tell you which parameters
are expected to be Python objects and which C objects.
Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll thread
Embedded Python and C Callback functions doc.mefisto@gmail.com - 2015-06-06 11:09 -0700
Re: Embedded Python and C Callback functions dieter <dieter@handshake.de> - 2015-06-07 08:02 +0200
Re: Embedded Python and C Callback functions doc.mefisto@gmail.com - 2015-06-07 01:37 -0700
Re: Embedded Python and C Callback functions doc.mefisto@gmail.com - 2015-06-07 01:56 -0700
Re: Embedded Python and C Callback functions Laura Creighton <lac@openend.se> - 2015-06-07 11:49 +0200
Re: Embedded Python and C Callback functions doc.mefisto@gmail.com - 2015-06-07 02:51 -0700
Re: Embedded Python and C Callback functions Stefan Behnel <stefan_ml@behnel.de> - 2015-06-07 22:32 +0200
Re: Embedded Python and C Callback functions doc.mefisto@gmail.com - 2015-06-07 02:15 -0700
Re: Embedded Python and C Callback functions dieter <dieter@handshake.de> - 2015-06-08 07:44 +0200
csiph-web