From fc7925ef78add912bac07320a0f0b99f99b3143c Mon Sep 17 00:00:00 2001 From: Jelle Zijlstra Date: Tue, 3 Oct 2023 20:46:38 -0700 Subject: [PATCH] gh-85984: Document change in return type of tty functions (#110028) --- Doc/library/tty.rst | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Doc/library/tty.rst b/Doc/library/tty.rst index fc7f98c7931fa57..a4777772e1fc6c8 100644 --- a/Doc/library/tty.rst +++ b/Doc/library/tty.rst @@ -43,6 +43,9 @@ The :mod:`tty` module defines the following functions: :func:`termios.tcsetattr`. The return value of :func:`termios.tcgetattr` is saved before setting *fd* to raw mode; this value is returned. + .. versionchanged:: 3.12 + The return value is now the original tty attributes, instead of None. + .. function:: setcbreak(fd, when=termios.TCSAFLUSH) @@ -51,6 +54,9 @@ The :mod:`tty` module defines the following functions: :func:`termios.tcsetattr`. The return value of :func:`termios.tcgetattr` is saved before setting *fd* to cbreak mode; this value is returned. + .. versionchanged:: 3.12 + The return value is now the original tty attributes, instead of None. + .. seealso::