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

Help required accessing dictionary

2011-08-31 Thread mrinalini
Hi I need to access the dictionary of the script that I am running through my vc++ application by embedding python. I am linking to python dynamically. I want to obtain the dictionary of the script and access the variables declared in the script. However, with the PyObject * that I get from the d

Dynamically linking python into my vc project - help required

2011-08-03 Thread mrinalini
y linking to python dynamically. How can this be done ? Please help. Is there a different approach to linking to python dynamically. Please could you write to me ? Thanks in advance, Mrinalini -- http://mail.python.org/mailman/listinfo/python-list