Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #12542 > unrolled thread

Help required accessing dictionary

Started bymrinalini@edss.co.in
First post2011-09-01 07:16 +0530
Last post2011-09-01 07:16 +0530
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python


Contents

  Help required accessing dictionary mrinalini@edss.co.in - 2011-09-01 07:16 +0530

#12542 — Help required accessing dictionary

Frommrinalini@edss.co.in
Date2011-09-01 07:16 +0530
SubjectHelp 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

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web