MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / object

Method object

lib/sqlalchemy/orm/state.py:398–405  ·  view source on GitHub ↗

Return the mapped object represented by this :class:`.InstanceState`. Returns None if the object has been garbage collected

(self)

Source from the content-addressed store, hash-verified

396
397 @property
398 def object(self) -> Optional[_O]:
399 """Return the mapped object represented by this
400 :class:`.InstanceState`.
401
402 Returns None if the object has been garbage collected
403
404 """
405 return self.obj()
406
407 @property
408 def identity(self) -> Optional[Tuple[Any, ...]]:

Calls

no outgoing calls