pty - pydoc - phpman

Look up a command

 

Markdown Format | JSON API | MCP Server Tool


Help on module pty:

NAME
    pty - Pseudo terminal utilities.

MODULE REFERENCE
    https://docs.python.org/3.10/library/pty.html

    The following documentation is automatically generated from the Python
    source files.  It may be incomplete, incorrect or include features that
    are considered implementation detail and may vary between Python
    implementations.  When in doubt, consult the module reference at the
    location listed above.

FUNCTIONS
    fork()
        fork() -> (pid, master_fd)
        Fork and make the child a session leader with a controlling terminal.

    openpty()
        openpty() -> (master_fd, slave_fd)
        Open a pty master/slave pair, using os.openpty() if possible.

    spawn(argv, master_read=<function _read at 0x7f7883b74c10>, stdin_read=<function _read at 0x7f7883b74c10>)
        Create a spawned process.

DATA
    __all__ = ['openpty', 'fork', 'spawn']

FILE
    /usr/lib/python3.10/pty.py



Generated by phpMan Author: Che Dong Under GNU General Public License
2026-06-02 05:14 @216.73.216.198 CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 TransitionalValid CSS!