MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _get_by_key_impl

Method _get_by_key_impl

lib/sqlalchemy/engine/_row_cy.py:130–136  ·  view source on GitHub ↗
(self, key: _KeyType, attr_err: cython.bint)

Source from the content-addressed store, hash-verified

128 @cython.cfunc
129 @cython.inline
130 def _get_by_key_impl(self, key: _KeyType, attr_err: cython.bint) -> object:
131 # NOTE: don't type index since there is no advantage in making cython
132 # do a type check
133 index = self._key_to_index.get(key)
134 if index is not None:
135 return self._data[index]
136 self._parent._key_not_found(key, attr_err)
137
138 if cython.compiled:
139

Callers 2

__getattr__Method · 0.95

Calls 2

_key_not_foundMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected