MCPcopy 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_init_close_fpMethod · 0.45
test_writeMethod · 0.45
test_write_101Method · 0.45
test_write_appendMethod · 0.45
test_tellMethod · 0.45
test_file_dictMethod · 0.45
test_file_prefixMethod · 0.45

Calls 1

lenFunction · 0.85

Tested by

no test coverage detected