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

Function state_str

lib/sqlalchemy/orm/base.py:356–362  ·  view source on GitHub ↗

Return a string describing an instance via its InstanceState.

(state: InstanceState[Any])

Source from the content-addressed store, hash-verified

354
355
356def state_str(state: InstanceState[Any]) -> str:
357 """Return a string describing an instance via its InstanceState."""
358
359 if state is None:
360 return "None"
361 else:
362 return "<%s at 0x%x>" % (state.class_.__name__, id(state.obj()))
363
364
365def state_class_str(state: InstanceState[Any]) -> str:

Callers 15

_goMethod · 0.85
instance_strFunction · 0.85
state_attribute_strFunction · 0.85
_warn_for_runid_changedFunction · 0.85
_validate_version_idFunction · 0.85
load_scalar_attributesFunction · 0.85
expungeMethod · 0.85
_register_persistentMethod · 0.85
_delete_implMethod · 0.85
_mergeMethod · 0.85
_validate_persistentMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected