Message 110476 - Python tracker (original) (raw)
OK, can someone show me an example of how functions defined in core Python can be made available to extension modules? I thought I could model pytime.h/.c after pymath.h/.c, but the later is not used in extension modules. I must be missing something trivial here.
You should just need to #include "pytime.h" from Include/Python.h. Actually, pymath.h is already included from there.