Depending on what you are trying to do you might be better off to start by
using Pyrex, Boost::Python or Swig.
http://www.cosc.canterbury.ac.nz/greg.ewing/python/Pyrex/
http://www.boost.org/libs/python/doc/
http://www.swig.org/
-Chris
On Fri, Aug 04, 2006 at 11:51:14AM -0700, jeremito wrote:
I
I am trying to learn how to extend and/or embed Python. I have looked
at the document Extending and Embedding the Python Interpreter and
also Python/C API Reference Manual. In the examples shown in
Extending... there are some things I ma not familiar with so I turn
to the index in the Reference
I'm going through a bit of this myself.
What I've found useful is downloading the source to Python and comparing
modules that I use a lot that are written in C (in my case datetime) and see how
they are coded. Also, if I am thinking of using a C API function to do
something, I grep or use