From af03b6967485e5049bf2cba702bffe4927480da8 Mon Sep 17 00:00:00 2001 From: Jake Wallin Date: Tue, 20 Oct 2026 02:35:06 +0000 Subject: [PATCH] gh-127388: Restore WeakValueDictionary.itervaluerefs documentation --- Doc/library/weakref.rst | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Doc/library/weakref.rst b/Doc/library/weakref.rst index 215b2c726d43371..fa74526fcb7017f 100644 --- a/Doc/library/weakref.rst +++ b/Doc/library/weakref.rst @@ -227,8 +227,13 @@ than needed. .. versionchanged:: 3.9 Added support for ``|`` and ``|=`` operators, as specified in :pep:`584`. -:class:`WeakValueDictionary` objects have an additional method that has the -same issues as the :meth:`WeakKeyDictionary.keyrefs` method. +:class:`WeakValueDictionary` objects have the following additional methods. +These have the same issues as the :meth:`WeakKeyDictionary.keyrefs` method. + + +.. method:: WeakValueDictionary.itervaluerefs() + + Return an :term:`iterator` that yields the weak references to the values. .. method:: WeakValueDictionary.valuerefs()