[issue13609] Add "os.get_terminal_size()" function
Zbyszek Szmek
report at bugs.python.org
Thu Jan 5 22:24:53 CET 2012
Zbyszek Szmek <zbyszek at in.waw.pl> added the comment:
> I haven't read much of this issue, but I strongly dislike the use of
> named tuples.
I don't really have a very strong opinion, but (cols, rows) does seem a lot like a tuple -- it really is just a pair of values without other function or state. Still I would much prefer to say
get_terminal_size().columns
than
get_terminal_size()[0]
So a bare tuple seems like the worst choice.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13609>
_______________________________________
More information about the Python-bugs-list
mailing list