mirror of
https://github.com/python/cpython.git
synced 2025-09-30 20:31:52 +00:00
[3.12] gh-85984: Document change in return type of tty functions (GH-110028) (#110324)
gh-85984: Document change in return type of tty functions (GH-110028)
(cherry picked from commit f02f26e293
)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
This commit is contained in:
parent
ee2f2bdb30
commit
7ec34874e3
1 changed files with 6 additions and 0 deletions
|
@ -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::
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue