Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ write
Method
write
Lib/test/test_zstd.py:2437–2438 ·
view source on GitHub ↗
(self, b)
Source
from the content-addressed store, hash-verified
2435
# write, no .flush() method
2436
class
C:
2437
def
write(self, b):
2438
return
len(b)
2439
with
ZstdFile(C(),
'w'
)
as
f:
2440
self.assertEqual(f.write(DAT), len(DAT))
2441
self.assertEqual(f.tell(), len(DAT))
Callers
15
test_zstd_multithread_compress
Method · 0.45
test_init_with_PathLike_filename
Method · 0.45
test_init_close_fp
Method · 0.45
test_write
Method · 0.45
test_write_empty_frame
Method · 0.45
test_write_empty_block
Method · 0.45
test_write_101
Method · 0.45
test_write_append
Method · 0.45
test_tell
Method · 0.45
test_file_dict
Method · 0.45
test_file_prefix
Method · 0.45
test_UnsupportedOperation
Method · 0.45
Calls
1
len
Function · 0.85
Tested by
no test coverage detected