No tab completion if sys.stdout is redirected

Bjoern Schliessmann usenet-mail-0306.20.chr0n0ss at spamgourmet.com
Wed Dec 19 17:37:33 EST 2007


Dirk Loss wrote:
> Bjoern Schliessmann wrote:

>> readline module applies its autocompletion functions to (and only
>> to) sys.stdout.
> 
> I see. Then I guess I'll have to avoid redirecting sys.stdout and
> come up with some kind of workaround instead.

Just use a "central" function for printing output. Inside this
function, you can redirect the output wherever you wish without
touching sys.stdout.

Regards,


Björn

-- 
BOFH excuse #226:

A star wars satellite accidently blew up the WAN.




More information about the Python-list mailing list