Re: Instantiate a python class object in C

2012-03-14 Thread Dids
Ok, I have it :) PyImport_Import , PyModule_GetDict, PyDict_GetItemString and PyObject_CallObject Need to take a second look at cython when I have a spare cycle or 2. Thanks for the the tip :) A+ Dids, -- http://mail.python.org/mailman/listinfo/python-list

Instantiate a python class object in C

2012-03-14 Thread Dids
xample: This is working: demo_obj1 = demo() my_C_extension.function_1( demo_obj1 ) //working, all good. This I can't figure out how to do: new_demo_obj = my_C_extension.function_2() Thanks for reading, Dids, -- http://mail.python.org/mailman/listinfo/python-list