Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ sha256sum
Function
sha256sum
Lib/test/test_tarfile.py:46–47 ·
view source on GitHub ↗
(data)
Source
from the content-addressed store, hash-verified
44
zstd = None
45
46
def
sha256sum(data):
47
return
sha256(data).hexdigest()
48
49
TEMPDIR = os.path.abspath(os_helper.TESTFN) +
"-tardir"
50
tarextdir = TEMPDIR +
'-extract-test'
Callers
10
test_fileobj_regular_file
Method · 0.85
test_fileobj_text
Method · 0.85
test_extract_hardlink
Method · 0.85
_assert_on_file_content
Method · 0.85
test_extract_hardlink_on_symlink
Method · 0.85
test_extractall_hardlink_on_symlink
Method · 0.85
test_fileobj_regular_file
Method · 0.85
_test_member
Method · 0.85
_test_sparse_file
Method · 0.85
_test_link_extraction
Method · 0.85
Calls
1
hexdigest
Method · 0.80
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…