About 400 results
Open links in new tab
  1. 9. Classes — Python 3.14.2 documentation

    2 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 any methods of its …

  2. Dynamic type creation and names for built-in types - Python

    3 days ago · This module provides names for many of the types that are required to implement a Python interpreter. It deliberately avoids including some of the types that arise only incidentally during …

  3. inspect — Inspect live objects — Python 3.14.2 documentation

    2 days ago · Return the name of the Python source file in which an object was defined or None if no way can be identified to get the source. This will fail with a TypeError if the object is a built-in module, …

  4. __main__ — Top-level code environment — Python 3.14.2 documentation

    2 days ago · When a Python module or package is imported, __name__ is set to the module’s name. Usually, this is the name of the Python file itself without the .py extension:

  5. 3. Data model — Python 3.14.2 documentation

    2 days ago · Once the class namespace has been populated by executing the class body, the class object is created by calling metaclass(name, bases, namespace, **kwds) (the additional keywords …

  6. Enum HOWTO — Python 3.14.2 documentation

    1 day ago · In certain situations, such as writing custom enum behavior, being able to access one member directly from another is useful, and is supported; however, in order to avoid name clashes …

  7. logging — Logging facility for Python — Python 3.14.2 documentation

    Return a logger with the specified name or, if name is None, return the root logger of the hierarchy. If specified, the name is typically a dot-separated hierarchical name like ‘a’, ‘a.b’ or ‘a.b.c.d’.

  8. dataclasses — Data Classes — Python 3.14.2 documentation

    2 days ago · The generated repr string will have the class name and the name and repr of each field, in the order they are defined in the class. Fields that are marked as being excluded from the repr are …

  9. enum — Support for enumerations — Python 3.14.2 documentation

    2 days ago · It should be called with the name of the enum class being created, otherwise private names and internal classes will not be handled correctly. Note that only the MutableMapping interface …

  10. 6. Modules — Python 3.14.2 documentation

    2 days ago · A module is a file containing Python definitions and statements. The file name is the module name with the suffix .py appended. Within a module, the module’s name (as a string) is …