Built-in functions — Python 3.15.2 documentation
Code objects can be executed by exec() or eval() . source can either be a normal string, a byte string, or an AST object. Refer to the ast module documentation ...
Code objects can be executed by exec() or eval() . source can either be a normal string, a byte string, or an AST object. Refer to the ast module documentation ...
Command-line option and argument parsing library. array. Space efficient arrays of uniformly typed numeric values. ast. Abstract Syntax Tree classes and manipulation.Generate byte-code files from Python source files. pyclbr. Supports information extraction for a Python module browser.
append(value, / ). Add an item to the end of the list. Similar to a[len(a):] = [x] ...
To clarify the above rules, here’s some example Python code, equivalent to the built-in hash, for computing the hash of a rational number, float, or complex
... code snippet in the ZeroMQSocketListener and ZeroMQSocketHandler examples and adapt them to Python 3. ... command, fix parsing of reST with code or code ...
| 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
Source code: Lib/tkinter/__init__.py The tkinter package (“Tk interface”) is the standard Python interface to the Tcl/Tk GUI toolkit. Both Tk and tkinter ...
This is the official documentation for Python 3.15.2.Tutorial Start here: a tour of Python's syntax and features. Built-ins reference Built-in functions and classes. Library reference Standard library modules. Language reference Syntax and language elements.
gh-97612: Fix a shell code injection vulnerability in the get-remote-certificate.py example script. The script no longer uses a shell to run openssl commands.
CVE 2026-115791, gh-161705: Remove sys.path[0] in gzip , tarfile and zipfile command line interface to prevent shadowing ...
gh-97612: Fix a shell code injection vulnerability in the get-remote-certificate.py example script. The script no longer uses a shell to run openssl commands.