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


Groups > comp.lang.python > #12542

Help required accessing dictionary

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <mrinalini@edss.co.in>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.008
X-Spam-Evidence '*H*': 0.98; '*S*': 0.00; 'python.': 0.04; 'statically': 0.07; 'python': 0.08; 'dictionary,': 0.16; 'null.': 0.16; 'pyobject': 0.16; 'subject:required': 0.16; 'subject:Help': 0.17; 'thanks,': 0.18; 'dictionary': 0.23; 'macros': 0.23; 'script.': 0.29; 'script': 0.29; 'object.': 0.30; 'to:addr:python- list': 0.33; 'done': 0.34; 'however,': 0.34; 'header:User- Agent:1': 0.34; 'declared': 0.34; 'running': 0.35; 'checks': 0.37; 'variables': 0.37; 'perform': 0.37; 'think': 0.38; 'to:addr:python.org': 0.39; 'from:no real name:2**0': 0.63
MIME-Version 1.0
Content-Type text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding 7bit
Date Thu, 01 Sep 2011 07:16:54 +0530
From mrinalini@edss.co.in
To <python-list@python.org>
Subject Help required accessing dictionary
X-Sender mrinalini@edss.co.in
User-Agent Roundcube Webmail/0.5.1
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.642.1314843015.27778.python-list@python.org> (permalink)
Lines 18
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1314843015 news.xs4all.nl 2439 [2001:888:2000:d::a6]:60943
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:12542

Show key headers only | View raw


 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 comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

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

csiph-web