On 27May2013 10:22, I wrote: | | => 903 self.stdin.write(input) [...] | | self = <subprocess.Popen object>, self.stdin = <_io.BufferedWriter name=5>, self.stdin.write = <built-in method write of _io.BufferedWriter object>, input = 'kdsjfksdjkfjksdjfs\r\n\t' | | TypeError: 'str' does not support the buffer interface | | args = ("'str' does not support the buffer interface",) | | with_traceback = <built-in method with_traceback of TypeError object> | | This is symptomatic of sys.stdin (well, whatever you're writing to) | being open in binary mode instead of text mode. And you're passing | a str. Try passing std.encode().
Sorry, that should be "input.encode()". -- Cameron Simpson <c...@zip.com.au> PCs are like a submarine, it will work fine till you open Windows. - zollie101 -- http://mail.python.org/mailman/listinfo/python-list