This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

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.
History
Date User Action Args
2010-07-16 19:36:45pitrousetrecipients: + pitrou, tim.peters, rhettinger, mark.dickinson, belopolsky, tim.golden, rnk
2010-07-16 19:36:43pitroulinkissue9079 messages
2010-07-16 19:36:43pitroucreate