New submission from Arfrever Frehtes Taifersar Arahesis <arfrever....@gmail.com>:
$ stty size | cat 46 157 $ python3.3 -c 'import os; print(os.get_terminal_size())' | cat Traceback (most recent call last): File "<string>", line 1, in <module> OSError: [Errno 22] Invalid argument Redirection to `less` are often used. A proposed patch was attached by Victor Stinner in issue #13609. ---------- messages: 160988 nosy: Arfrever, denilsonsa, haypo, zbysz priority: normal severity: normal status: open title: os.get_terminal_size() should check stdin as a fallback versions: Python 3.3 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue14841> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com