readline() when there is no '/n'

Tyler Eaves tyler at cg1.org
Tue Feb 4 23:14:58 EST 2003


John Smith unleashed the following on comp.lang.python:
> 
> 
> I am running a process using popen2 and capturing the process output with 
> readline().  The program prompts for a file name "Enter filename:", and the 
> line doesn't end with a '/n' so the readline() method hangs up.  Any 
> suggestions?
> 
> John Smith

Urm, I may be stating the obvious, but don't use readline?

-- 
Tyler Eaves

Funadmental Python - Free Ebook!
http://cg1.org/pythontut.pdf




More information about the Python-list mailing list