Skip to content

Commit 6183830

Browse files
committed
Update the pty.openpty docs.
1 parent ff12bc4 commit 6183830

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

Doc/library/pty.rst

+6-3
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,12 @@ The :mod:`pty` module defines the following functions:
3434

3535
.. function:: openpty()
3636

37-
Open a new pseudo-terminal pair, using :func:`os.openpty` if possible, or
38-
emulation code for generic Unix systems. Return a pair of file descriptors
39-
``(master, slave)``, for the master and the slave end, respectively.
37+
Open a new pseudo-terminal pair, this is an alias for :func:`os.openpty`.
38+
Return a pair of file descriptors ``(master, slave)``, for the "master" and
39+
the "slave" sides of the ``pty``.
40+
41+
.. versionchanged:: 3.12
42+
Emulation on legacy Unix systems without :func:`os.openpty` was removed.
4043

4144

4245
.. function:: spawn(argv[, master_read[, stdin_read]])

0 commit comments

Comments
 (0)