No tab completion if sys.stdout is redirected
Bjoern Schliessmann
usenet-mail-0306.20.chr0n0ss at spamgourmet.com
Tue Dec 18 09:13:14 EST 2007
More information about the Python-list mailing list
Tue Dec 18 09:13:14 EST 2007
- Previous message (by thread): No tab completion if sys.stdout is redirected
- Next message (by thread): sending a rip1 request via python
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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, readline support seems suddenly disabled. Why? readline module applies its autocompletion functions to (and only to) sys.stdout. Regards, Björn -- BOFH excuse #350: paradigm shift...without a clutch
- Previous message (by thread): No tab completion if sys.stdout is redirected
- Next message (by thread): sending a rip1 request via python
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list