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__");
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
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
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
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).
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
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