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

Antoine Pitrou report at bugs.python.org
Fri Dec 16 18:32:03 CET 2011


Antoine Pitrou <pitrou at free.fr> added the comment:

Ok, a couple of general comments:
- there is no point having a separate module for a single function; I think the os module (and posixmodule.c for the C side) is a reasonable place where to put this
- C code should be indented with 4 spaces increments and no tabs (see PEP 7)
- constants in C code should be uppercase
- C code should be C89-compliant and therefore we don't use named struct initializers (such as ".m_size = 0")

----------

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


More information about the Python-bugs-list mailing list