[issue24966] shutil.get_terminal_size() throws ValueError if stdout is detached, no fallback

R. David Murray report at bugs.python.org
Mon Aug 31 02:05:13 CEST 2015


R. David Murray added the comment:

In this case it might be better to leave the error.  The buffer being detached would seem to be a programming error.  What would be the use case for using get_terminal_size in a program that detaches the standard stream buffer?

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue24966>
_______________________________________


More information about the Python-bugs-list mailing list