more embeded problems
nick_knight at my-deja.com
nick_knight at my-deja.com
Thu Aug 10 10:49:24 EDT 2000
Hello again,
I have a very simple example, in the python command line you can
>>> varstringa = "hello "
>>> varstringb = "goodbye"
>>> out = varstringa + varstringb
>>> print out
hello goodbye
and this works fine, however if I use
PyRun_String("varstringa = 'Hello '", Py_file_input, Globals, Locals);
PyRun_String("varstringb = 'goodbye'", Py_file_input, Globals, Locals);
this sets up the variables correctly but when you run a scriupt using
PyRun_File which contains
out = varstringa + varstringb
print out
then the following error occurs:
Traceback (innermost last):
File "e:/Downloads/python/testbed/test.py", line 1, in ?
out = varstringa + varstringb
TypeError: illegal argument type for built-in operation
HELP Why ???
thanks
Sent via Deja.com http://www.deja.com/
Before you buy.
More information about the Python-list
mailing list