MCPcopy Index your code
hub / github.com/numpy/numpy / write_bytes

Method write_bytes

numpy/lib/_npyio_impl.py:1526–1530  ·  view source on GitHub ↗
(self, v)

Source from the content-addressed store, hash-verified

1524 self.do_write(v)
1525
1526 def write_bytes(self, v):
1527 if isinstance(v, bytes):
1528 self.fh.write(v)
1529 else:
1530 self.fh.write(v.encode(self.encoding))
1531
1532 def write_normal(self, v):
1533 self.fh.write(asunicode(v))

Callers 1

first_writeMethod · 0.95

Calls 2

encodeMethod · 0.80
writeMethod · 0.45

Tested by

no test coverage detected