Skip to content

Commit

Permalink
pythongh-108731: Add description of __slots__ to MemberDescriptorType…
Browse files Browse the repository at this point in the history
… docs (pythonGH-108745)
  • Loading branch information
plokmijnuhby authored Jan 24, 2024
1 parent 191531f commit 6888ccc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Doc/library/types.rst
Original file line number Diff line number Diff line change
Expand Up @@ -398,6 +398,10 @@ Standard names are defined for the following types:
data members which use standard conversion functions; it has the same purpose
as the :class:`property` type, but for classes defined in extension modules.

In addition, when a class is defined with a :attr:`~object.__slots__` attribute, then for
each slot, an instance of :class:`!MemberDescriptorType` will be added as an attribute
on the class. This allows the slot to appear in the class's :attr:`~object.__dict__`.

.. impl-detail::

In other implementations of Python, this type may be identical to
Expand Down

0 comments on commit 6888ccc

Please sign in to comment.