(EMBEDDING) Can't get python error message
I run this string to produce a error x+1 PyRun_SimpleStringFlags() return -1, so that i know this is a script with error inside... but now - how can i get error message? i tested some py-functions - but this functions do not work... i called this functions direct after PyRun_SimpleStringFlags PyErr_Occurred() return always 0 PyErr_Fetch() with 3 pointers... all values are always Null PyErr_Print() do nothing strange... but after my programm end... here comes a error message (from StdErr i think) Traceback (most recent call last): File string, line 1, in module NameError: name 'x' is not defined -- http://mail.python.org/mailman/listinfo/python-list
EMBEDDING Run Python Run C Function
At the moment i can run python-string-code from C (MinGW, WinXP) But how can i register a C-function in python-RUNTIME and call this C function from python - without wrapper dll's or libs??? STEPS: initialize python regsiter foo() ### don't know how to do this run python-script c=foo(a,b) finalize my C function should do this: char* foo (char* a, char* b) { char* c=return one strings; return c; } have someone a idea? i checked the online docs - but i don't understand :-( can someone post a short sample? please... thank you -- http://mail.python.org/mailman/listinfo/python-list
Re: Thunderbird access to this newsgroup
hm i have the same problem with thunderbird + comp.lang.python so that i decided to use google for first time -- http://mail.python.org/mailman/listinfo/python-list
Re: EMBEDDING Run Python Run C Function
i readed this before but not understand it - but now - the second time it works THANK YOU!! -- http://mail.python.org/mailman/listinfo/python-list