About 400 results
Open links in new tab
  1. abc — Abstract Base Classes — Python 3.14.0 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.

  2. 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 …

  3. ast — Abstract syntax trees — Python 3.14.0 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 …

  4. 9. Classes — Python 3.15.0a1 documentation

    4 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 …

  5. unittest.mock — getting started — Python 3.14.0 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.

  6. contextlib — Utilities for with-statement contexts - Python

    3 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 …

  7. numbers — Numeric abstract base classes — Python 3.14.0 …

    3 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 …

  8. Glossary — Python 3.14.0 documentation

    2 days ago · A method that is called implicitly by Python to execute a certain operation on a type, such as addition. Such methods have names starting and ending with double underscores.

  9. inspect — Inspect live objects — Python 3.14.0 documentation

    2 days 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 …

  10. Built-in Functions — Python 3.15.0a1 documentation

    4 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.