Martin Panter added the comment: The current exception seems to give a reasonable hint:
>>> subprocess.Popen((executable,), stdout=BytesIO()) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python3.5/subprocess.py", line 914, in __init__ errread, errwrite) = self._get_handles(stdin, stdout, stderr) File "/usr/lib/python3.5/subprocess.py", line 1400, in _get_handles c2pwrite = stdout.fileno() io.UnsupportedOperation: fileno Perhaps we can close this in favour of fixing the documentation? (Issue 19992) ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue29989> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com