Re: No tab completion if sys.stdout is redirected

2007-12-19 Thread Bjoern Schliessmann
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 o

Re: No tab completion if sys.stdout is redirected

2007-12-19 Thread Dirk Loss
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. Nevertheless, thanks for the info. Regards Dirk -- http://mail.python.o

Re: No tab completion if sys.stdout is redirected

2007-12-18 Thread Bjoern Schliessmann
Dirk Loss wrote: > I want to have tab completion in my program for interactive input. > Using readline and rlcompleter this works nicely. But I also have > to catch and modify all "print" output, so I redirect sys.stdout > to a custom file-like object. The problem is: After the > redirection, readl

No tab completion if sys.stdout is redirected

2007-12-18 Thread Dirk Loss
Hi, I want to have tab completion in my program for interactive input. Using readline and rlcompleter this works nicely. But I also have to catch and modify all "print" output, so I redirect sys.stdout to a custom file-like object. The problem is: After the redirection, readline support seems sudd