From: Jonathan Paisley Date: 2005-06-17T21:10:33+09:00 Subject: Re: stubborn program using readline On Fri, 17 Jun 2005 08:41:22 +0900, Wybo Dekker wrote: > On Thu, 16 Jun 2005, Logan Capaldo wrote: > >> Theory: readline reads from STDIN correct? using rltest < rltest means >> that STDIN gets EOF, which means STDIN is closed which means readlien >> can't read anything from it. > > No, readline should not necessarily read from STDIN. It can read from the > console, /dev/tty or so. Since you always want to readline from the terminal, try that: tty = open("/dev/tty","a+") tty.readline