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" (http://docs.python.org/ext/ext.html).

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

CATEGORY: extending