Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ write
Method
write
Lib/test/test_zipfile/test_core.py:3053–3056 ·
view source on GitHub ↗
(self, data)
Source
from the content-addressed store, hash-verified
3051
self.offset = 0
3052
3053
def
write(self, data):
3054
n = self.fp.write(data)
3055
self.offset += n
3056
return
n
3057
3058
def
tell(self):
3059
return
self.offset
Callers
15
setUp
Method · 0.45
make_test_archive
Method · 0.45
test_repr
Method · 0.45
test_per_file_compresslevel
Method · 0.45
write
Method · 0.45
test_writing_errors
Method · 0.45
test_absolute_arcnames
Method · 0.45
test_append_to_zip_file
Method · 0.45
test_append_to_non_zip_file
Method · 0.45
test_read_concatenated_zip_file
Method · 0.45
test_append_to_concatenated_zip_file
Method · 0.45
test_ignores_newline_at_end
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected