Skip to content

Commit c59cd3b

Browse files
JelleZijlstramiss-islington
authored andcommitted
pythongh-85984: Document change in return type of tty functions (pythonGH-110028)
(cherry picked from commit f02f26e) Co-authored-by: Jelle Zijlstra <[email protected]>
1 parent 414f562 commit c59cd3b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Doc/library/tty.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ The :mod:`tty` module defines the following functions:
4343
:func:`termios.tcsetattr`. The return value of :func:`termios.tcgetattr`
4444
is saved before setting *fd* to raw mode; this value is returned.
4545

46+
.. versionchanged:: 3.12
47+
The return value is now the original tty attributes, instead of None.
48+
4649

4750
.. function:: setcbreak(fd, when=termios.TCSAFLUSH)
4851

@@ -51,6 +54,9 @@ The :mod:`tty` module defines the following functions:
5154
:func:`termios.tcsetattr`. The return value of :func:`termios.tcgetattr`
5255
is saved before setting *fd* to cbreak mode; this value is returned.
5356

57+
.. versionchanged:: 3.12
58+
The return value is now the original tty attributes, instead of None.
59+
5460

5561
.. seealso::
5662

0 commit comments

Comments
 (0)