Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d9c026f

Browse files
committed
Issue #15412: Remove erroneous note about weakrefs
1 parent 264e9ac commit d9c026f

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

Doc/library/weakref.rst

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,6 @@ they need -- it's not usually necessary to create your own weak references
5353
directly. The low-level machinery used by the weak dictionary implementations
5454
is exposed by the :mod:`weakref` module for the benefit of advanced uses.
5555

56-
.. note::
57-
58-
Weak references to an object are cleared before the object's :meth:`__del__`
59-
is called, to ensure that the weak reference callback (if any) finds the
60-
object still alive.
61-
6256
Not all objects can be weakly referenced; those objects which can include class
6357
instances, functions written in Python (but not in C), instance methods, sets,
6458
frozensets, some :term:`file objects <file object>`, :term:`generator`\s, type

0 commit comments

Comments
 (0)