Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #12542 > unrolled thread
| Started by | mrinalini@edss.co.in |
|---|---|
| First post | 2011-09-01 07:16 +0530 |
| Last post | 2011-09-01 07:16 +0530 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.lang.python
Help required accessing dictionary mrinalini@edss.co.in - 2011-09-01 07:16 +0530
| From | mrinalini@edss.co.in |
|---|---|
| Date | 2011-09-01 07:16 +0530 |
| Subject | Help required accessing dictionary |
| Message-ID | <mailman.642.1314843015.27778.python-list@python.org> |
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 dictionary, I am not able to find the type of the object. The reason being that GetProcAddress to PyInt_Check returns a NULL. The same thing with PyFloat_Check and so on. I think this is because they are macros and not exported functions. What can be done to be able to perform these checks without statically linking to the pyhon lib ? Thanks, Abhaya
Back to top | Article view | comp.lang.python
csiph-web