On this page
article
sys — System Parameters
Interpreter settings, stdin/stdout, exit codes.
Overview
Interpreter settings, stdin/stdout, exit codes.
Quick Example
import sys
sys.argv
sys.exit(1)
When to Use
Use this module when you need built-in support without adding third-party dependencies.
Common Tasks
- Read the official docs: docs.python.org/3/library/sys.html
- Combine with related modules in the Cookbook
- Prefer stdlib before reaching for PyPI packages