Options for stdin and stdout when using pdb debugger

2016-11-24 Thread Robert Snoeberger
I would like to use pdb in an application where it isn't possible to use sys.stdin for input. I've read in the documentation for pdb.Pdb that a file object can be used instead of sys.stdin. Unfortunately, I'm not clear about my options for the file object. I've looked at rpdb on PyPI, which re

Re: Embedding Python into C set up issues

2016-03-14 Thread robert . snoeberger
> > However, I am having great trouble getting Py_Initialize() to work in the > both CDT and Visual Studio 2015. I have as a starting point a simple C > program that prints hello world then calls py_initialize and then prints > another line of text to the screen. Calling Py_initialize causes th

ABI name tag for libpython

2016-03-14 Thread Robert Snoeberger
On Debian, the shared library, libpython3.4m.so, is ABI version tagged with an “m.” I’m assuming that this is the ABI version tag specified in PEP 3149. The PEP give an example of using sysconfig.get_config_var to get the name tag. >>> sysconfig.get_config_var('SOABI') 'cpython-34m' I’ve also n

how to create a frame object when embedding python?

2014-05-23 Thread Robert Snoeberger
Hi python-list, I'm embedding Python in an application and I have encountered two crashes while calling built-in functions that expect a top-level frame. See the following bug reports: http://bugs.python.org/issue21563 and http://bugs.python.org/issue21418. The problem is that the workflow for