Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ get_hash_command
Method
get_hash_command
Lib/test/test_hash.py:174–175 ·
view source on GitHub ↗
(self, repr_)
Source
from the content-addressed store, hash-verified
172
# an object to be tested
173
174
def
get_hash_command(self, repr_):
175
return
'print(hash(eval(%a)))'
% repr_
176
177
def
get_hash(self, repr_, seed=None):
178
env = os.environ.copy()
Callers
1
get_hash
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected