Combining PyMethodDef's to create one C module
Paul Prescod
paul at prescod.net
Thu Jul 13 03:41:46 EDT 2000
Pete Shinners wrote:
>
>
> i've got a python extension in the works. the extension is
> split into two main C source files. i figured it would be
> easiest if each file has its own "PyMethodDef". then
> combine both these lists when creating the module with
> "Py_InitModule"
Note that it is *your code* that uses PyMethodDef:
return Py_FindMethod(xmlparse_methods, (PyObject *)self, name);
You could probably just check one list and then the other.
--
Paul Prescod - Not encumbered by corporate consensus
Simplicity does not precede complexity, but follows it.
- http://www.cs.yale.edu/~perlis-alan/quotes.html
More information about the Python-list
mailing list