Extending Python: rewriting a single method in C
Paul Prescod
paulp at ActiveState.com
Mon Mar 12 07:35:46 EST 2001
Jacek Generowicz wrote:
>
> ..
>
> Is there any way of re-writing just these methods in C ?
Sure! In fact, it is down-right easy if you are a C programmer. You just
put the two functions in an extension module and call them from C.
http://www.python.org/doc/current/ext/ext.html
Also, look at this example module: (you'll have to paste together the
URL)
http://cvs.sourceforge.net/cgi-bin/cvsweb.cgi/python/dist/src/Modules/xxmodule.c?rev=2.22&content-type=text/x-cvsweb-markup&cvsroot=python
--
Python:
Programming the way
Guido
indented it.
- (originated with Skip Montanaro?)
More information about the Python-list
mailing list