PyMOTW

  • Home
  • Blog
  • The Book
  • About
  • Site Index

If you find this information useful, consider picking up a copy of my book, The Python Standard Library By Example.

Navigation

Table of Contents
Previous: site – Site-wide configuration
Next: Interpreter Settings

This Page

Show Source

Examples

The output from all the example programs from PyMOTW has been generated with Python 2.7.8, unless otherwise noted. Some of the features described here may not be available in earlier versions of Python.

If you are looking for examples that work under Python 3, please refer to the PyMOTW-3 section of the site.


Now available for Python 3!


Buy the book!

Navigation

  • index
  • modules |
  • next |
  • previous |
  • PyMOTW »
  • Python Runtime Services »

sys – System-specific ConfigurationΒΆ

Purpose:Provides system-specific configuration and operations.
Available In:1.4 and later

The sys module includes a collection of services for probing or changing the configuration of the interpreter at runtime and resources for interacting with the operating environment outside of the current program.

  • Interpreter Settings
    • Build-time Version Information
    • Install Location
    • Command Line Options
    • Unicode Defaults
    • Interactive Prompts
    • Display Hook
  • Runtime Environment
    • Command Line Arguments
    • Input and Output Steams
    • Returning Status
  • Memory Management and Limits
    • Reference Counts
    • Object Size
    • Recursion
    • Maximum Values
    • Floating Point Values
    • Byte Ordering
  • Exception Handling
    • Unhandled Exceptions
    • Current Exception
    • Previous Interactive Exception
  • Tracing a Program As It Runs
    • Tracing Function Calls
    • Tracing Inside Functions
    • Watching the Stack
    • Exception Propagation
  • Low-level Thread Support
    • Check Interval
    • Debugging
  • Modules and Imports
    • Imported Modules
    • Built-in Modules
    • Import Path
    • Custom Importers
    • Importer Cache
    • Meta Path

See also

sys
The standard library documentation for this module.

Navigation

  • index
  • modules |
  • next |
  • previous |
  • PyMOTW »
  • Python Runtime Services »

© Copyright Doug Hellmann. | Creative Commons License | Last updated on Jul 11, 2020. | Created using Sphinx. | Design based on "Leaves" by SmallPark | Green Web Hosting! This site hosted by DreamHost.