pydoc > pty

📛 NAME

pty - Pseudo terminal utilities.

🚀 Quick Reference

Use CaseCommandDescription
đŸ–Ĩī¸ Open a PTY pairmaster_fd, slave_fd = pty.openpty()Get master/slave file descriptors
🍴 Fork a child with a controlling terminalpid, fd = pty.fork()Child becomes session leader with a PTY
🚀 Spawn a process with PTY I/Opty.spawn(argv)Run a program, connecting its I/O to the PTY

📚 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

📊 DATA

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

📁 FILE

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

pty
📛 NAME 🚀 Quick Reference 📚 MODULE REFERENCE đŸ› ī¸ FUNCTIONS 📊 DATA 📁 FILE

Generated by phpman v4.9.27 · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-07-18 11:08 @216.73.216.114
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 Transitional!Valid CSS!
Enhanced by LLM: deepseek-v4-flash / taotoken.net / www.chedong.com - original format