How to Parse a Script before execution

Susanne susi2000 at web.de
Wed Dec 10 05:11:02 EST 2003


Hello,

i was looking for a solution in the groups, and
someone did it with:

struct _node * myNode = PyParser_SimpleParseFile(...);
PyNode_Compile(myNode);
PyEval_EvalCode(...);

I am using Python 2.3 and there my Visual Compiler says, that there
is no PyNode_Compile().

I also looked into different books, and in the html-help of
Python 2.3, but found nothing usable.

Perhaps anyone of you has an idea, how to solve my problem.

Thanks
Susanne




More information about the Python-list mailing list