writing a C function to manipulate python lists

Courageous jkraska1 at san.rr.com
Wed Mar 7 21:24:24 EST 2001


>If anyone has some code lying around that does something like this, could
>they pass it on to me?

Get the book _Essential Python Reference_. It's section on extending
and embedding is outstanding. After you've read that, get the source
code release of python. Look at the sample object implementation, and
then at the native source for Python lists right in the raw.

It's really all very straighforward once you understand the dispatch
mechanism and reference counting (the latter of which is a bit tricky).


C//




More information about the Python-list mailing list