help - obtaining the type of the object using tp_name

2011-12-25 Thread Mrinalini Kulkarni
Hello, I have embedded python into a vc++ app. I need to obtain type of the variable defined in the python script, in my c++ code. PyObject *pMyObject; -> assume points to a variable defined in the python script Now I want to do something like this const char * typeName; typeName = pMyObj

Executing .pyc using python c api

2011-11-29 Thread Mrinalini Kulkarni
Hi I need to run .pyc files using python c api. if i do PyImport_Import it executes the script. However, i need to pass a set of variables and their values which will be accessed from within the script. How can this be done. thanks, -- http://mail.python.org/mailman/listinfo/python-list