Question about PyList

Jeff Epler jepler at unpythonic.net
Fri Oct 29 17:22:29 CEST 2004


There's always PyObject_CallMethod.  I believe the code would look
something like
    PyObject *o = ...;
    PyObject *l = ...;
    PyObject *r = PyObject_CallMethodObjArgs(l, "extend", o, NULL);
or
    PyObject *l = ...;
    PyObject *o = PyObject_CallMethod(l, "pop", NULL);

Jeff
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-list/attachments/20041029/bb4ba835/attachment.pgp>


More information about the Python-list mailing list