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 > >> >> python code here > >>py?> > >> > >>I parse the text file and substitute the python code with

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 >>> 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

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 >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. >

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 > 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. >

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 >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. > >

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 >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. >

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 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 was wondering if such a feat