unhandled exception question

2007-05-25 Thread joshusdog
I'm working on a test application that embeds the Python interpreter. I have the following problem... I've created my own interactive interpreter loop. Essentially, it reads the command from the prompt and calls the following C code: PyObject* pMainModule = PyImport_AddModule("__main__");

newbie question: retrieving values of variables through C API

2007-05-17 Thread joshusdog
I've got an application that embeds the Python interpreter. I have the following command in my code: PyRun_SimpleString("a = \"hello\""); My question is, what is the C API function call for retrieving the value of the variable "a"? -- http://mail.python.org/mailman/listinfo/python-list

Re: multi-line input?

2007-05-15 Thread joshusdog
Ah, thanks. Using the information you provided, I found the following page: http://archives.free.net.ph/message/2303.091004.4da616bf.en.html It's not perfect, but it's close enough for what I need. -- http://mail.python.org/mailman/listinfo/python-list

multi-line input?

2007-05-14 Thread joshusdog
I'm writing a C++ application with an embedded Python interpreter. Command text is captured and passed to the interpreter a single line at a time. My question is this: is there a simple way of determining whether a given input line of text will cause the prompt to change from the regular ">>>" to t

integrating embedded interpreter with external controls

2007-05-07 Thread joshusdog
I need some advice about how to go about architecting a solution to the following problem. I'd like to create an application that has an interactive listener/ console window in which the user can enter commands (in much the same vain as 3D Studio Max, for those who are familiar with the product).

building _tkinter module with .NET 2005?

2007-04-27 Thread joshusdog
I have the Python 2.5.1 source and I'm trying to build the debug version of the _tkinter module. I've got .NET 2005 (Visual Studio 8) but the instructions in the pcbuild\readme.txt file only contain instructions for using .NET 2003 (Visual Studio 7.1). There's another readme.txt file under the pcbu

help building debug .pyd files

2007-04-11 Thread joshusdog
The installation of Python 2.5 comes with a bunch of built-in extension modules (.pyd files) under the DLLs directory. I've downloaded the Python source code and am trying to build the debug versions of all of these files. However, some of the projects won't build because they are looking for heade