mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +00:00
GH-65961: Stop setting __cached__ on modules
This commit is contained in:
parent
e32c975640
commit
28f1334f1a
32 changed files with 93 additions and 240 deletions
|
|
@ -80,7 +80,6 @@ def _run_code(code, run_globals, init_globals=None,
|
|||
pkg_name = mod_spec.parent
|
||||
run_globals.update(__name__ = mod_name,
|
||||
__file__ = fname,
|
||||
__cached__ = cached,
|
||||
__doc__ = None,
|
||||
__loader__ = loader,
|
||||
__package__ = pkg_name,
|
||||
|
|
@ -180,7 +179,6 @@ def _run_module_as_main(mod_name, alter_argv=True):
|
|||
At the very least, these variables in __main__ will be overwritten:
|
||||
__name__
|
||||
__file__
|
||||
__cached__
|
||||
__loader__
|
||||
__package__
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue