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

Method _clone

lib/sqlalchemy/sql/base.py:1091–1095  ·  view source on GitHub ↗

Create a shallow copy of this ExecutableOption.

(self, **kw)

Source from the content-addressed store, hash-verified

1089 _is_core: bool = True
1090
1091 def _clone(self, **kw):
1092 """Create a shallow copy of this ExecutableOption."""
1093 c = self.__class__.__new__(self.__class__)
1094 c.__dict__ = dict(self.__dict__) # type: ignore
1095 return c
1096
1097
1098class Executable(roles.StatementRole):

Callers

nothing calls this directly

Calls 1

__new__Method · 0.45

Tested by

no test coverage detected