[C++-SIG] C++ and PyMethodDef

Barry Scott bscott at Ridgeway-Sys.com
Mon Mar 19 11:33:09 CET 2001


Look at the Python CXX code for an example. THe sources are available on
sourceforge.

		Barry

-----Original Message-----
From: Karl Bellve [mailto:Karl.Bellve at umassmed.edu]
Sent: 16 March 2001 14:46
To: Python C++
Subject: [C++-SIG] C++ and PyMethodDef



Hopefully this is the best place to ask this question.

I have a class that will use Python and Numpy. There could be several
instances of this class, each using and initializing Python.

The problem I am having is with PyMethoDef which passes a table of
methods and their descriptions to Python. As far as I can tell, this
can't be a static structure. Anyone build a PyMethodDef structure inside
a C++ class so the appropiate function pointers point to the appropiate
instance of the class?



Cheers,

Karl Bellve

_______________________________________________
C++-SIG maillist  -  C++-SIG at python.org
http://mail.python.org/mailman/listinfo/c++-sig




More information about the Cplusplus-sig mailing list