Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ flush
Method
flush
Lib/zipfile/__init__.py:768–771 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
766
return
self._comp.compress(data)
767
768
def
flush(self):
769
if
self._comp is None:
770
return
self._init() + self._comp.flush()
771
return
self._comp.flush()
772
773
774
class
LZMADecompressor:
Callers
10
compress
Function · 0.95
test_simple_bad_args
Method · 0.95
test_roundtrip_xz
Method · 0.95
test_roundtrip_alone
Method · 0.95
test_roundtrip_raw
Method · 0.95
test_roundtrip_raw_empty
Method · 0.95
test_roundtrip_chunks
Method · 0.95
test_roundtrip_empty_chunks
Method · 0.95
test_compressor_bigmem
Method · 0.95
test_compressor
Method · 0.95
Calls
2
_init
Method · 0.95
flush
Method · 0.45
Tested by
9
test_simple_bad_args
Method · 0.76
test_roundtrip_xz
Method · 0.76
test_roundtrip_alone
Method · 0.76
test_roundtrip_raw
Method · 0.76
test_roundtrip_raw_empty
Method · 0.76
test_roundtrip_chunks
Method · 0.76
test_roundtrip_empty_chunks
Method · 0.76
test_compressor_bigmem
Method · 0.76
test_compressor
Method · 0.76