Cpp + Python: static data dynamic initialization in *nix shared lib?

sturlamolden sturlamolden at yahoo.no
Tue Jul 13 16:03:11 EDT 2010


On 9 Jul, 17:52, "Alf P. Steinbach /Usenet" <alf.p.steinbach
+use... at gmail.com> wrote:

> For an extension module it seems that Python requires each routine to be defined
> as 'extern "C"'.

That is strange. PyMethodDef is just a jump table. So why should
'extern "C"' matter?

Good luck on re-inventing the wheel (you've probably heared about
Swig, SIP, Boost.Python, PyCXX, scipy.weave and Cython...)




More information about the Python-list mailing list