Martin Panter added the comment:

I don’t think it is right to assume pseudo-terminals behave exactly like pipes. 
I suspect the behaviour when the slave is closed is undefined, or at best 
platform-specific, and there is no bug to fix in Python.

Also, it looks like array.fromfile() assumes any short read implies EOF, so the 
unbuffered workaround may not work in all cases. The documentation is vague on 
what it accepts, but I suspect it only works properly with a binary “buffered” 
file in general.

----------
nosy: +martin.panter

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

Reply via email to