Skip to content

gh-127388: Restore WeakValueDictionary.itervaluerefs documentation - #159850

Open
limadog9 wants to merge 1 commit into
python:mainfrom
limadog9:gh-127388-itervaluerefs-docs
Open

limadog9 wants to merge 1 commit into
python:mainfrom
limadog9:gh-127388-itervaluerefs-docs

Conversation

@limadog9

@limadog9 limadog9 commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

Restore the documentation for the public WeakValueDictionary.itervaluerefs() method and apply the existing weak-reference lifetime warning to both reference methods.

The Python 3 mapping-interface change in ecaab83 removed this documentation while retaining the method. It remains a generator in the current implementation and is covered by the existing weakref tests.

Fixes #127388.

Validation:

  • Confirmed the iterator protocol, weak-reference results, and collection of referents on the current CPython debug build.
  • All weakref tests: 140 tests, 4 skipped.
  • Full HTML documentation build with warnings treated as errors.
  • Sphinx lint and patchcheck.

@read-the-docs-community

Copy link
Copy Markdown

Documentation build overview

📚 cpython-previews | 🛠️ Build #35258725 | 📁 Comparing af03b69 against main (6044c62)

  🔍 Preview build  

1 file changed
± library/weakref.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting review docs Documentation in the Doc dir skip news

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

Missing document of WeakValueDictionary.itervaluerefs

1 participant