don't understand popen2

Martin P. Hellwig mhellwig at xs4all.nl
Thu Mar 23 02:54:42 EST 2006


gry at 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



More information about the Python-list mailing list