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 ...
Python debuggers and similar tools may now more reliably update local variables in optimized scopes even during concurrent code execution. PEP 703: CPython 3.13 ...
The deferred loading reduces startup latency without requiring code restructuring or conditional imports scattered throughout the codebase. In the case where ...
Deterministic tracing profiler for Python programs. pstats. Statistics object for analyzing profiler output.Generate byte-code files from Python source files. pyclbr. Supports information extraction for a Python module browser.
1 day ago · This module provides access to common mathematical functions and constants, including those defined by the C standard. These functions cannot be used with complex numbers; use the functions of the ...
Source code: Lib/random.py This module implements pseudo-random number generators for various distributions. For integers, there is uniform selection from a ...
Source code: Lib/multiprocessing/shared_memory.py. Added in version 3.8.The following example demonstrates a practical use of the SharedMemory class with NumPy arrays, accessing the same numpy.ndarray from two distinct Python shells
1 day ago · Elsewhere, The Python Language Reference describes the exact syntax and semantics of the Python language, and Python built-ins reference describes the built-in functions. Python’s standard library is extensive, offering a wide range of facilities as indicated by the long table of contents listed below.
Source code: Lib/base64.py This module provides functions for encoding binary data to printable ASCII characters and decoding such encodings back to binary ...
This code is exactly equivalent to the first example. Be sure to give the additional functions the same name as the original property (x in this case.) The returned property object also has the attributes fget, fset, and fdel corresponding to the constructor arguments.
1 day ago · Source code: Lib/statistics.py This module provides functions for calculating mathematical statistics of numeric ( Real-valued) data. The module is not intended to be a competitor to third-party li...
gh-158195: Fix a deadlock in the free-threaded build between a thread that stops the world while running Python code under the type lock (for example a custom ...
| 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
1 day ago · For an informal introduction to the language, see The Python Tutorial. For C or C++ programmers, two additional manuals exist: Extending and Embedding the Python Interpreter describes the high-level picture of how to write a Python extension module, and the Python/C API reference manual describes the interfaces available to C/C++ programmers in ...
Moreover, even source code of Python modules can contain sensitive data like passwords. Vulnerability reported by David Schwörer. bpo-43285: ftplib no longer ...
1 day ago · Some libraries described under Text Processing Services also work with either ASCII-compatible binary formats (for example, re) or all binary data (for example, difflib). In addition, see the documentation for Python’s built-in binary data types in Binary Sequence Types — bytes, bytearray, memoryview.
bpo-39883: Make code, examples, and recipes in the Python documentation be ... array when removing unreachable code. This bug was present in every ...