[prev in list] [next in list] [prev in thread] [next in thread] 

List:       python-cpp-sig
Subject:    [C++-SIG] C++ and PyMethodDef
From:       bscott () Ridgeway-Sys ! com (Barry Scott)
Date:       2001-03-19 10:33:09
Message-ID: 00533D13955AD411AF3800A0C9B426390EC22D () RIDGEWAY
[Download RAW message or body]

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

		Barry

-----Original Message-----
From: Karl Bellve [mailto:Karl.Bellve@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@python.org
http://mail.python.org/mailman/listinfo/c++-sig


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic