MRAB <python <at> mrabarnett.plus.com> writes: > > I believe it's waiting for the end of the input, i.e. for the pipe to > close. > > Have you tried calling fo.readline() 3 times instead? > yeah! It worked!... A question remains: what is then the purpose of fo.readlines(...)? Thanks, --Sergio