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 ...
Table of Contents. pstats — Statistics for profilers. Reading and displaying profile data. Working with statistics. Filtering output. Analyzing call relationships. Combining multiple profiles. The Stats class.
Source code: Lib/statistics.py This module provides functions for calculating mathematical statistics of numeric ( Real-valued) data.
Python also includes a data type for sets. A set is an unordered collection with no duplicate elements. Basic uses include membership testing and eliminating duplicate entries. Set objects also support mathematical operations like union, intersection, difference, and symmetric difference.
Python is an easy to learn, powerful programming language. It has efficient high-level data structures and a simple but effective approach to ...
| dataclasses — Data Classes¶. Source code: Lib/dataclasses.py. This module provides a decorator and functions for automatically adding generated special methods such as __init__() and __repr__() to user-defined classes.
(The value of an immutable container object that contains a reference to a mutable object can change when the latter's value is changed; however the container ...
All lexical analysis, including string literals, comments and identifiers, works on Unicode text decoded using the source encoding. Any Unicode code point, ...
Source code: Lib/struct.py. This module converts between Python values and C structs represented as Python bytes objects. Compact format strings describe the intended conversions to/from Python values.
Source code: Lib/random.py This module implements pseudo-random number generators for various distributions. For integers, there is uniform selection from a ...