
abc — Abstract Base Classes — Python 3.14.3 documentation
1 day 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
1 day 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 whether the full …
contextlib — Utilities for with-statement contexts — Python 3.14.3 ...
1 day 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 close() method for …
dataclasses — Data Classes — Python 3.14.3 documentation
1 day 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 the class …
numbers — Numeric abstract base classes — Python 3.14.3 …
4 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 are intended to …
9. Classes — Python 3.14.3 documentation
4 days ago · There are two kinds of valid attribute names: data attributes and methods. Data attributes correspond to “instance variables” in Smalltalk, and to “data members” in C++. Data attributes need …
unittest.mock — getting started — Python 3.14.3 documentation
2 days ago · Sometimes a test needs to patch an unbound method, which means patching the method on the class rather than on the instance. In order to make assertions about which objects were …
inspect — Inspect live objects — Python 3.14.3 documentation
1 day ago · Return in a single string any lines of comments immediately preceding the object’s source code (for a class, function, or method), or at the top of the Python source file (if the object is a module).
ast — Abstract syntax trees — Python 3.14.3 documentation
1 day 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 module helps to find …
Built-in Types — Python 3.14.3 documentation
1 day ago · This method corresponds to the tp_iternext slot of the type structure for Python objects in the Python/C API. Python defines several iterator objects to support iteration over general and specific …