Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ freeze
Method
freeze
Lib/importlib/metadata/_collections.py:24–25 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
22
return
getattr(self,
'_frozen'
, super().__missing__)(key)
23
24
def
freeze(self):
25
self._frozen =
lambda
key: self.default_factory()
26
27
28
class
Pair(typing.NamedTuple):
Callers
5
test_freeze
Method · 0.80
test_traverse_frozen_objects
Method · 0.80
test_freeze_simple_script
Method · 0.80
evil
Method · 0.80
__init__
Method · 0.80
Calls
1
default_factory
Method · 0.80
Tested by
4
test_freeze
Method · 0.64
test_traverse_frozen_objects
Method · 0.64
test_freeze_simple_script
Method · 0.64
evil
Method · 0.64