Python sys Module

The argv list contains command-line arguments passed to the script.

The path list contains directories where Python searches for modules.

The version string provides information about the Python interpreter.

The platform string indicates the operating system platform.

The getsizeof() function returns the size of an object in bytes.

The exit() function terminates the program with an optional exit code.

The maxsize integer represents the maximum size of a list or range.

The modules dictionary contains information about loaded modules.

The exc_info() function returns information about the current exception.

Leave a Comment