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

Method first_write

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

Source from the content-addressed store, hash-verified

1533 self.fh.write(asunicode(v))
1534
1535 def first_write(self, v):
1536 try:
1537 self.write_normal(v)
1538 self.write = self.write_normal
1539 except TypeError:
1540 # input is probably a bytestream
1541 self.write_bytes(v)
1542 self.write = self.write_bytes
1543
1544 own_fh = False
1545 if isinstance(fname, os.PathLike):

Callers

nothing calls this directly

Calls 2

write_normalMethod · 0.95
write_bytesMethod · 0.95

Tested by

no test coverage detected