MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / __iter__

Method __iter__

lib/sqlalchemy/ext/associationproxy.py:1871–1880  ·  view source on GitHub ↗

Iterate over proxied values. For the actual domain objects, iterate over .col instead or just use the underlying collection directly from its property on the parent.

(self)

Source from the content-addressed store, hash-verified

1869 return False
1870
1871 def __iter__(self) -> Iterator[_T]:
1872 """Iterate over proxied values.
1873
1874 For the actual domain objects, iterate over .col instead or just use
1875 the underlying collection directly from its property on the parent.
1876
1877 """
1878 for member in self.col:
1879 yield self._get(member)
1880 return
1881
1882 def add(self, __element: _T, /) -> None:
1883 if __element not in self:

Callers

nothing calls this directly

Calls 1

_getMethod · 0.45

Tested by

no test coverage detected