FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-155354: Document that sys no longer clears the type cache by fedonman · Pull Request #155391 · python/cpython · GitHub

Repository navigation

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .rst  (1) All 1 file type selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
13 changes: 8 additions & 5 deletions Doc/library/sys.rst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -233,15 +233,15 @@ always available. Unless explicitly noted otherwise, all variables are read-only

.. function:: _clear_type_cache()

Clear the internal type cache. The type cache is used to speed up attribute
and method lookups. Use the function *only* to drop unnecessary references
during reference leak debugging.

This function should be used for internal and specialized purposes only.
This function is a no-op. It used to clear the internal type cache, which
is now implemented per-type.

.. deprecated:: 3.13
Use the more general :func:`_clear_internal_caches` function instead.

.. versionchanged:: 3.16
This function is now a no-op.


.. function:: _clear_internal_caches()

Expand All @@ -250,6 +250,9 @@ always available. Unless explicitly noted otherwise, all variables are read-only

.. versionadded:: 3.13

.. versionchanged:: 3.16
The type cache is no longer cleared, as it is now implemented per-type.


.. function:: _current_frames()

Expand Down
Loading

Back | FazBrowse Home | New Git URL