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, by using the C compatibility features found in C++.

Most notably, you need to put extern “C” before each function that is going to be called by the Python interpreter. To write portable code, avoid using global or static C++ objects with constructors.

CATEGORY: extending