Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions Doc/reference/datamodel.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2646,6 +2646,18 @@ Attribute lookup speed can be significantly improved as well.
and *__weakref__* for each instance.


.. attribute:: object.__weakref__

A descriptor added by the implementation to classes whose instances support
weak references.

When accessed on an instance, this attribute is either ``None`` or a
weak reference or weak proxy object associated with the instance. It is
not a complete list of all weak references to the instance. Use
:func:`weakref.getweakrefs` to retrieve all weak references and proxy
objects that refer to an object.


.. _datamodel-note-slots:

Notes on using *__slots__*:
Expand Down
Loading