Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/mongodb/mongo-python-driver
/ __next__
Method
__next__
gridfs/synchronous/grid_file.py:1535–1539 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
1533
closed: bool
1534
1535
def
__next__(self) -> bytes:
1536
line = self.readline()
1537
if
line:
1538
return
line
1539
raise
StopIteration()
1540
1541
def
to_list(self) -> list[bytes]:
1542
return
[x
for
x in self]
# noqa: C416, RUF100
Callers
nothing calls this directly
Calls
1
readline
Method · 0.95
Tested by
no test coverage detected