Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ compress
Method
compress
Lib/test/test_gzip.py:862–863 ·
view source on GitHub ↗
(self, data)
Source
from the content-addressed store, hash-verified
860
def
__init__(self):
861
self.modes = []
862
def
compress(self, data):
863
return
b
''
864
def
flush(self, mode=-1):
865
self.modes.append(mode)
866
return
b
''
Callers
15
BaseTest
Class · 0.45
testWriteNonDefaultCompressLevel
Method · 0.45
testDecompressLimited
Method · 0.45
testCompress
Method · 0.45
testCompressEmptyString
Method · 0.45
testCompressChunks10
Method · 0.45
testCompress4G
Method · 0.45
testDecompress4G
Method · 0.45
testCompress
Method · 0.45
testCompressEmptyString
Method · 0.45
test_simple_compress_bad_args
Method · 0.45
test_zstd_multithread_compress
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected