]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-85984: Document change in return type of tty functions (#110028)
authorJelle Zijlstra <jelle.zijlstra@gmail.com>
Wed, 4 Oct 2023 03:46:38 +0000 (20:46 -0700)
committerGitHub <noreply@github.com>
Wed, 4 Oct 2023 03:46:38 +0000 (20:46 -0700)
Doc/library/tty.rst

index fc7f98c7931fa5752ed04f68eb35867bd4b725a0..a4777772e1fc6c84a398ce7d094643bc4268f8c7 100644 (file)
@@ -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::