Storing Data in C++-Object

Uwe Schmitt uwe at rocksport.de
Fri Nov 23 05:29:43 EST 2001


Holger Fuessler <fuessler at demokrit.informatik.uni-mannheim.de> wrote:

| Hi all!

| How can I store data in a C++-Object and access it from Python? The
| documentation I found for extending Python in C is only for calling
| functions with no persistent C-Data. 

| What I need is the instantiation of a C++-Object from Python and then
| access its methods.

| Is there any HowTo-Document for doing that?

You should look at http://www.boost.org/libs/python/doc/index.html

Greetings, Uwe.


-- 
Dr. rer. nat. Uwe Schmitt                       Uwe.Schmitt at num.uni-sb.de
Universitaet des Saarlandes                     Angewandte Mathematik
Building 36.1 Room 4.17         PO-Box 151150   D-66041 Saarbruecken
Mobile:0177/6806587    Fax:+49(0)681/302-4435   Office:+49(0)681/302-2468



More information about the Python-list mailing list