Skip to content

Commit 59942e2

Browse files
authored
gh-127388: Restore WeakValueDictionary.itervaluerefs documentation (#159850)
1 parent 66e391d commit 59942e2

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

‎Doc/library/weakref.rst‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,8 +227,13 @@ than needed.
227227
.. versionchanged:: 3.9
228228
Added support for ``|`` and ``|=`` operators, as specified in :pep:`584`.
229229

230-
:class:`WeakValueDictionary` objects have an additional method that has the
231-
same issues as the :meth:`WeakKeyDictionary.keyrefs` method.
230+
:class:`WeakValueDictionary` objects have the following additional methods.
231+
These have the same issues as the :meth:`WeakKeyDictionary.keyrefs` method.
232+
233+
234+
.. method:: WeakValueDictionary.itervaluerefs()
235+
236+
Return an :term:`iterator` that yields the weak references to the values.
232237

233238

234239
.. method:: WeakValueDictionary.valuerefs()

0 commit comments

Comments
 (0)