
abc — Abstract Base Classes — Python 3.14.2 documentation
2 days ago · This module provides the infrastructure for defining abstract base classes (ABCs) in Python, as outlined in PEP 3119; see the PEP for why this was added to Python.
collections.abc — Abstract Base Classes for Containers - Python
2 days ago · Those classes should define the full API including all of the abstract methods and all of the mixin methods. This lets users rely on issubclass() or isinstance() tests to determine …
ast — Abstract syntax trees — Python 3.14.2 documentation
2 days ago · The ast module helps Python applications to process trees of the Python abstract syntax grammar. The abstract syntax itself might change with each Python release; this …
contextlib — Utilities for with-statement contexts - Python
4 days ago · While many objects natively support use in with statements, sometimes a resource needs to be managed that isn’t a context manager in its own right, and doesn’t implement a …
numbers — Numeric abstract base classes — Python 3.14.2 …
2 days ago · The numbers module (PEP 3141) defines a hierarchy of numeric abstract base classes which progressively define more operations. None of the types defined in this module …
9. Classes — Python 3.14.2 documentation
3 days ago · Python classes provide all the standard features of Object Oriented Programming: the class inheritance mechanism allows multiple base classes, a derived class can override …
The Python Standard Library — Python 3.15.0a2 documentation
2 days ago · While The Python Language Reference describes the exact syntax and semantics of the Python language, this library reference manual describes the standard library that is …
Built-in Functions — Python 3.15.0a2 documentation
2 days ago · Static methods in Python are similar to those found in Java or C++. Also, see classmethod() for a variant that is useful for creating alternate class constructors.
unittest.mock — getting started — Python 3.14.2 documentation
3 days ago · Once our mock has been used (real.method in this example) it has methods and attributes that allow you to make assertions about how it has been used.
dataclasses — Data Classes — Python 3.14.2 documentation
2 days ago · By default, @dataclass will not implicitly add a __hash__() method unless it is safe to do so. Neither will it add or change an existing explicitly defined __hash__() method. Setting …