Skip to content

Commit f02f26e

Browse files
gh-85984: Document change in return type of tty functions (#110028)
1 parent 269005e commit f02f26e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Doc/library/tty.rst

+6
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)