[issue18535] termios.tcgetattr should return namedtuple

anatoly techtonik report at bugs.python.org
Wed Jul 24 14:05:02 CEST 2013


anatoly techtonik added the comment:

Do not hijack the issue - value interpretation is the next step, which better keep out of scope for this improvement. termios is a C interface, which documents the meaning of TIOCGWINSZ and has defined names for structure entries, such as lflag. This issue is to make Python code at least as readable as C.

C doesn't allow you to revert value meaning from ('\x1b') to text form.

----------
status: closed -> open

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


More information about the Python-bugs-list mailing list