The Python Language Reference — Python 3.15.2 documentation
This page is licensed under the Python Software Foundation License Version 2. Examples, recipes, and other code in the documentation are additionally licensed ...
This page is licensed under the Python Software Foundation License Version 2. Examples, recipes, and other code in the documentation are additionally licensed ...
Built-ins reference Built-in functions and classes. Library reference Standard library modules. Language reference Syntax and language elements. Python setup and usage How to install, configure, and use Python.
1 day ago · Download Python documentation. Download Python 3.15 documentation Last updated on: Dec 05, 2026 (11:03 UTC). Download an archive containing all the documentation for this version of Python:
The Python interpreter has a number of functions and types built into it that are always available. They are listed here in alphabetical order.This function supports dynamic execution of Python code. object must be either a string or a code object.
This page is licensed under the Python Software Foundation License Version 2. Examples, recipes, and other code in the documentation are additionally licensed ...
Generate byte-code files from Python source files. pyclbr. Supports information extraction for a Python module browser.Support for weak references and weak dictionaries. webbrowser. Easy-to-use controller for web browsers.
1 day ago · 5. The import system ¶ Python code in one module gains access to the code in another module by the process of importing it. The import statement is the most common way of invoking the import machinery, but it is not the only way. Functions such as importlib.import_module () and built-in __import__ () can also be used to invoke the import machinery. An eager import statement performs two ...
This page is licensed under the Python Software Foundation License Version 2. Examples, recipes, and other code in the documentation are additionally licensed ...
This module provides access to some variables used or maintained by the interpreter and to functions that interact strongly with the interpreter. It is always ...
2 days ago · Code compiled by calls to the built-in functions exec () and compile () that occur in a module M containing a future statement will, by default, use the new syntax or semantics associated with the future statement.
This page is licensed under the Python Software Foundation License Version 2. Examples, recipes, and other code in the documentation are additionally licensed ...