Skip to content

Commit

Permalink
Update the pty.openpty docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
gpshead committed Oct 7, 2022
1 parent ff12bc4 commit 6183830
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Doc/library/pty.rst
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,12 @@ The :mod:`pty` module defines the following functions:

.. function:: openpty()

Open a new pseudo-terminal pair, using :func:`os.openpty` if possible, or
emulation code for generic Unix systems. Return a pair of file descriptors
``(master, slave)``, for the master and the slave end, respectively.
Open a new pseudo-terminal pair, this is an alias for :func:`os.openpty`.
Return a pair of file descriptors ``(master, slave)``, for the "master" and
the "slave" sides of the ``pty``.

.. versionchanged:: 3.12
Emulation on legacy Unix systems without :func:`os.openpty` was removed.


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

0 comments on commit 6183830

Please sign in to comment.