Hi,
I want to start "python -i" from a subprocess and change its stdin stream,
so I get control over the commands I feed the interpreter.

I thought just changing sys.stdin to my custom file-like object would
suffice, but this does not work. Neither does changing sys.__stdin__.

I guess the interpreter got a reference to the original stdin (the Pipe)
before
I could change it, and is using that instead of sys.stdin.

Any thoughts how I can get the interpreter to use MY custom stream?

thanks,
Almar
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to