On this page
  1. pty.spawn
  2. Import
  3. Signature & Overview
  4. Usage
  5. Gotchas
  6. REPL Inspect

pty.spawn

Prev: pty.openpty | Up: pty
Rel: pty.fork, pty.openpty
Ref: docs.python.org — pty.spawn
Tags: #public #python3 #stdlib #pty


Import

import pty
from pty import spawn

Signature & Overview

pty.spawn(argv, master_read=<function _read at 0x10a876560>, stdin_read=<function _read at 0x10a876560>)

Create a spawned process.

Usage

import pty

# Unix-only: runs a command inside a PTY bridged to the current terminal
assert callable(pty.spawn)

Gotchas

REPL Inspect

from pty import spawn
help(spawn)

Linked from

Related notes