gry@ll.mit.edu wrote: <cut> > > You gave it a single string, not a list(sequence) of strings. Try > something like: > std_in.writelines(["notgood"]) >
I got this output then: >>> something: Traceback (most recent call last): File "F:\coding\pwSync\popen_test\popen_test.py", line 8, in ? std_in.writelines(["notgood"]) IOError: [Errno 22] Invalid argument >>> something: Traceback (most recent call last): File "F:\coding\pwSync\popen_test\popen_test.py", line 8, in ? std_in.write("notgood") IOError: [Errno 22] Invalid argument >>> It seems that it doesn't matter. -- mph -- http://mail.python.org/mailman/listinfo/python-list