mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
GH-114695: Add sys._clear_internal_caches (GH-115152)
This commit is contained in:
parent
54bde5dcc3
commit
235cacff81
12 changed files with 130 additions and 84 deletions
|
|
@ -201,8 +201,8 @@ def dash_R_cleanup(fs, ps, pic, zdc, abcs):
|
|||
# Clear caches
|
||||
clear_caches()
|
||||
|
||||
# Clear type cache at the end: previous function calls can modify types
|
||||
sys._clear_type_cache()
|
||||
# Clear other caches last (previous function calls can re-populate them):
|
||||
sys._clear_internal_caches()
|
||||
|
||||
|
||||
def warm_caches():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue