MCPcopy Index your code
hub / github.com/mongodb/mongo-python-driver / writelines

Method writelines

gridfs/asynchronous/grid_file.py:1419–1425  ·  view source on GitHub ↗

Write a sequence of strings to the file. Does not add separators.

(self, sequence: Iterable[Any])

Source from the content-addressed store, hash-verified

1417 self._buffer.write(to_write)
1418
1419 async def writelines(self, sequence: Iterable[Any]) -> None:
1420 """Write a sequence of strings to the file.
1421
1422 Does not add separators.
1423 """
1424 for line in sequence:
1425 await self.write(line)
1426
1427 def writeable(self) -> bool:
1428 return True

Callers 1

test_write_linesMethod · 0.95

Calls 1

writeMethod · 0.95

Tested by 1

test_write_linesMethod · 0.76