STINNER Victor added the comment:

Attached subprocess_memoryview.patch uses a memoryview() to avoid memory copies.

The behaviour is undefined if two threads share the same Popen object and call 
the communicate() method at the same time. But I'm not sure that Popen is 
thread safe, it doesn't use any lock.

----------
keywords: +patch
nosy: +pitrou, sbt
Added file: http://bugs.python.org/file32714/subprocess_memoryview.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue19506>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to