MCPcopy Create free account
hub / github.com/mongodb/mongo-python-driver / read

Method read

gridfs/synchronous/grid_file.py:1317–1318  ·  view source on GitHub ↗
(self, size: int = -1)

Source from the content-addressed store, hash-verified

1315 object.__setattr__(self, "_closed", True)
1316
1317 def read(self, size: int = -1) -> NoReturn:
1318 raise io.UnsupportedOperation("read")
1319
1320 def readable(self) -> bool:
1321 return False

Callers 15

write_combined_req_filesFunction · 0.45
runMethod · 0.45
test_basicMethod · 0.45
test_empty_fileMethod · 0.45
test_corrupt_chunkMethod · 0.45
test_alt_collectionMethod · 0.45
test_threaded_writesMethod · 0.45
test_get_last_versionMethod · 0.45
test_get_versionMethod · 0.45

Calls

no outgoing calls

Tested by 15

runMethod · 0.36
test_basicMethod · 0.36
test_empty_fileMethod · 0.36
test_corrupt_chunkMethod · 0.36
test_alt_collectionMethod · 0.36
test_threaded_writesMethod · 0.36
test_get_last_versionMethod · 0.36
test_get_versionMethod · 0.36