improving performance of writing into a pipe
Peter Otten
__peter__ at web.de
Tue Feb 19 08:57:38 EST 2013
mikprog at gmail.com wrote:
>> def write_to_pipe(line):
>> hexbytes = ''.join('\\x%02x' % ord(c) for c in line)
I thought this was only needed to have 'echo' except your data.
>> with open('/tmp/mypipe', 'w') as f:
>> f.write(hexbytes)
> Update:
> with a fix in the pipe THIS was the right way to do it, and it now works.
> Thanks a lot Serhiy to you and to everyone else.
Do you mind telling us what fix you applied?
More information about the Python-list
mailing list