We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e863fa commit 0990191Copy full SHA for 0990191
1 file changed
Doc/reference/datamodel.rst
@@ -2646,6 +2646,20 @@ Attribute lookup speed can be significantly improved as well.
2646
and *__weakref__* for each instance.
2647
2648
2649
+.. attribute:: object.__weakref__
2650
+
2651
+ A descriptor added by the implementation to some classes whose instances
2652
+ support weak references.
2653
2654
+ This attribute is either ``None`` or a weak reference or proxy object
2655
+ associated with the instance. Use :func:`weakref.getweakrefs` to retrieve
2656
+ all weak references and proxy objects that refer to an object.
2657
2658
2659
+ .. impl-detail::
2660
+ This attribute may not exist in all Python implementations.
2661
2662
2663
.. _datamodel-note-slots:
2664
2665
Notes on using *__slots__*:
0 commit comments