On Saturday 05 December 2009 01:20:12 Siva B wrote: > for the line of code you given, > > print type(sys.stdin), sys.stdin > > the output is: > <class 'idlelib.rpc.RPCProxy'> <idlelib.rpc.RPCProxy object at > 0x00BE8090> > > there is no change. > I have tried it in python2.6 on windows platform. > > Thanks, > Siva >
How did you run this on Linux? How did you run it on Windows? It looks like you're running it from within IDLE. I don't know IDLE at all, and don't know how to pass data to its standard input -- can you let us know what arguments you're using? I've tried sys.stdin.read() from inside IDLE on Linux, and it gives me the same error. ---- Rami Chowdhury "Any sufficiently advanced incompetence is indistinguishable from malice." -- Grey's Law 408-597-7068 (US) / 07875-841-046 (UK) / 0189-245544 (BD) -- http://mail.python.org/mailman/listinfo/python-list