Message110476
| Author |
pitrou |
| Recipients |
belopolsky, mark.dickinson, pitrou, rhettinger, rnk, tim.golden, tim.peters |
| Date |
2010年07月16日.19:36:43 |
| SpamBayes Score |
0.0079291165 |
| Marked as misclassified |
No |
| Message-id |
<1279309000.3242.9.camel@localhost.localdomain> |
| In-reply-to |
<1279308796.08.0.32731244501.issue9079@psf.upfronthosting.co.za> |
| Content |
> 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. |
|