Skip to content

gh-155354: Document that sys no longer clears the type cache - #155391

Open
fedonman wants to merge 1 commit into
python:mainfrom
fedonman:doc-clear-caches-type-cache
Open

gh-155354: Document that sys no longer clears the type cache#155391
fedonman wants to merge 1 commit into
python:mainfrom
fedonman:doc-clear-caches-type-cache

Conversation

@fedonman

@fedonmanfedonman commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

sys._clear_type_cache() and sys._clear_internal_caches() still say they clear the type cache. They stopped doing so when PyType_ClearCache() became a no-op, and only the C API page was updated at the time.

This adds the same note to both, matching the wording already on Doc/c-api/type.rst.

@read-the-docs-community

Copy link
Copy Markdown

Documentation build overview

📚 cpython-previews | 🛠️ Build #33974459 | 📁 Comparing a223c35 against main (998b890)

🔍 Preview build

1 file changed
±library/sys.html

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

Labels

awaiting reviewdocsDocumentation in the Doc dirskip news

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

1 participant

@fedonman