Re: Includeing Python in text files

2006-05-23 Thread Chris Smith
Diez B. Roggisch wrote: Paolo Pantaleo wrote: I am working on this: I have a text file, containig certain section in the form ?py python code here py? I parse the text file and substitute the python code with its result [redirecting sys.stdin to a StringIO]. It something like php or

Re: Includeing Python in text files

2006-05-23 Thread Paolo Pantaleo
2006/5/23, Chris Smith [EMAIL PROTECTED]: Diez B. Roggisch wrote: Paolo Pantaleo wrote: I am working on this: I have a text file, containig certain section in the form ?py python code here py? I parse the text file and substitute the python code with its result [redirecting

Includeing Python in text files

2006-05-22 Thread Paolo Pantaleo
I am working on this: I have a text file, containig certain section in the form ?py python code here py? I parse the text file and substitute the python code with its result [redirecting sys.stdin to a StringIO]. It something like php or embedded perl. So my little toy works not bad, but I

Re: Includeing Python in text files

2006-05-22 Thread Diez B. Roggisch
Paolo Pantaleo wrote: I am working on this: I have a text file, containig certain section in the form ?py python code here py? I parse the text file and substitute the python code with its result [redirecting sys.stdin to a StringIO]. It something like php or embedded perl. So

Re: Includeing Python in text files

2006-05-22 Thread looping
Paolo Pantaleo wrote: I am working on this: I have a text file, containig certain section in the form ?py python code here py? I parse the text file and substitute the python code with its result [redirecting sys.stdin to a StringIO]. It something like php or embedded perl. So my

Re: Includeing Python in text files

2006-05-22 Thread Laurent Pointal
Paolo Pantaleo a écrit : I am working on this: I have a text file, containig certain section in the form ?py python code here py? I parse the text file and substitute the python code with its result [redirecting sys.stdin to a StringIO]. It something like php or embedded perl. So

Re: Includeing Python in text files

2006-05-22 Thread Erik Max Francis
Paolo Pantaleo wrote: I am working on this: I have a text file, containig certain section in the form ?py python code here py? I parse the text file and substitute the python code with its result [redirecting sys.stdin to a StringIO]. It something like php or embedded perl. So