Python commands in an interpreted script

Heiko Wolf heiko.wolf at dlr.de
Thu Jan 24 05:18:35 EST 2002


Hi,

I've got a python program here that reads out from script like

key_word1
key_word2

and interprets the keywords, e.g. if keyword1 is read funtion1 is
started. Now I want to use Python funtionality in that script, e.g. a
loop like

for i in range(10):
  keyword1

if I want keyword1 to be interpreted 10 times.
Is there a way that Python executes commands, but just interprets
certain strings?

Cheers, Heiko



More information about the Python-list mailing list