Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ clear
Method
clear
Lib/os.py:783–785 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
781
782
if
_exists(
"_clearenv"
):
783
def
clear(self):
784
_clearenv()
785
self._data.clear()
786
787
788
def
_create_environ_mapping():
Callers
15
cache_clear
Function · 0.45
dispatch
Function · 0.45
register
Function · 0.45
_strptime
Function · 0.45
reload_environ
Function · 0.45
handle_kill_line
Method · 0.45
clear_extension_cache
Function · 0.45
flush
Method · 0.45
close
Method · 0.45
clear_frames
Function · 0.45
create_connection
Function · 0.45
run
Method · 0.45
Calls
no outgoing calls
Tested by
3
run
Method · 0.36
run
Method · 0.36
tearDown
Method · 0.36