[issue13609] Add "os.get_terminal_size()" function

Martin v. Löwis report at bugs.python.org
Thu Jan 5 21:55:00 CET 2012

Martin v. Löwis <martin at v.loewis.de> added the comment:

I haven't read much of this issue, but I strongly dislike the use of named tuples. Either we want people to use named fields, then we should use a regular class (possibly with slots), or we want to define the result as two values, then there should be a plain tuple result.

named tuples should only be used as a compatibility mechanism, when the first design used tuples, and it was later found that additional values need to be returned which would change the number of values (or the original design was considered bad because it returned too many positional values to properly keep track).


Python tracker <report at bugs.python.org>

More information about the Python-bugs-list mailing list