sys module

The standard library module through which a program asks the running interpreter about itself.

In more detail

sys.version_info gives the version, sys.executable the interpreter file, sys.path the module search path, sys.prefix the installation, and sys.argv the command-line arguments. sys.exit ends the program with an exit code.

Related terms

Taught in

References

Certification courses