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
13 changes: 13 additions & 0 deletions Doc/reference/datamodel.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2646,6 +2646,19 @@ Attribute lookup speed can be significantly improved as well.
and *__weakref__* for each instance.


.. attribute:: object.__weakref__

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

This attribute is either ``None`` or a weak reference or proxy object
associated with the instance. Use :func:`weakref.getweakrefs` to retrieve
all weak references and proxy objects that refer to an object.
.. impl-detail::

This attribute may not exist in all Python implementations.


Comment thread
zainnadeem786 marked this conversation as resolved.
.. _datamodel-note-slots:

Notes on using *__slots__*:
Expand Down
Loading