Finding a python object in c++

bmatt bsmatt at gmail.com
Thu Sep 16 20:23:34 EDT 2004


I am trying to figure out how to get a reference to a python object in
c++ so that I can call methods from c++. For example if I have the
following python code

class foo:
    def func():
        x = 1

f1 = foo()
f1.func()

How do I find f1 at get a Py_Object* to it so I can call the func
method?

Thanks



More information about the Python-list mailing list