C and Python, Python and C

Philip Pearson writes that SWIG can help put Python and C together. The documentation is in PDF, but that's only a drawback for backwards folk like me.

Python has its own documentation about extending Python. C code written with it uses special PyName classes (?) to provide Python objects, and functions take particular arguments, C versions of self and an args tuple, kinda like when passing arguments by keyword dictionary. You have to do a lot of special stuff.

I'm not awake enough yet to understand very well, so I'll let the links stand.