Can anyone tell me what I am doing wrong with the following code? When python 2.4 is embedded it crashes because of the assignment to stdin.
import sys;
class RedirectB:
def readline(self):
return "bar";
sys.stdin = RedirectB();
Thanks! Andy
--
http://mail.python.org/mailman/listinfo/python-list
