Re: Recursive insertion of a line

2007-11-21 Thread Francesco Pietra
--- Dennis Lee Bieber <[EMAIL PROTECTED]> wrote: > On Tue, 20 Nov 2007 01:16:53 -0800 (PST), Francesco Pietra > <[EMAIL PROTECTED]> declaimed the following in comp.lang.python: > > > > > > Now, "file .out" had "TER" inserted where I wanted. It might well be that > it > > was my incorrect use o

Re: Recursive insertion of a line

2007-11-20 Thread Francesco Pietra
Please, see below. --- Gabriel Genellina <[EMAIL PROTECTED]> wrote: > En Mon, 19 Nov 2007 21:15:16 -0300, Henry <[EMAIL PROTECTED]> > escribió: > > > On 19/11/2007, Francesco Pietra <[EMAIL PROTECTED]> wrote: > >> > >> How to insert "TER" records recursively, i.e. some thousand fold, in a > >

Re: Recursive insertion of a line

2007-11-19 Thread Gabriel Genellina
En Mon, 19 Nov 2007 21:15:16 -0300, Henry <[EMAIL PROTECTED]> escribió: > On 19/11/2007, Francesco Pietra <[EMAIL PROTECTED]> wrote: >> >> How to insert "TER" records recursively, i.e. some thousand fold, in a >> file >> like in the following example? "H2 WAT" is the only constant >> characteri

Re: Recursive insertion of a line

2007-11-19 Thread Henry
On 19/11/2007, Francesco Pietra <[EMAIL PROTECTED]> wrote: > > New to the list and just beginning with Python (Linux B console). Urgent > problem before I can correctly program: > > How to insert "TER" records recursively, i.e. some thousand fold, in a > file > like in the following example? "H2 W

Recursive insertion of a line

2007-11-19 Thread Francesco Pietra
New to the list and just beginning with Python (Linux B console). Urgent problem before I can correctly program: How to insert "TER" records recursively, i.e. some thousand fold, in a file like in the following example? "H2 WAT" is the only constant characteristic of the line after which to inser