MCPcopy Index your code
hub / github.com/python/cpython / write

Method write

Lib/test/test_zstd.py:2436–2437  ·  view source on GitHub ↗
(self, b)

Source from the content-addressed store, hash-verified

2434 # write, no .flush() method
2435 class C:
2436 def write(self, b):
2437 return len(b)
2438 with ZstdFile(C(), 'w') as f:
2439 self.assertEqual(f.write(DAT), len(DAT))
2440 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

no outgoing calls

Tested by

no test coverage detected