We're back after a server migration that caused effbot.org to fall over a bit harder than expected. Expect some glitches.

Can I create my own functions in C?

Yes, you can create built-in modules containing functions, variables, exceptions and even new types in C. This is explained in the document Extending and Embedding the Python Interpreter.

Most intermediate or advanced Python books will also cover this topic.

CATEGORY: extending