MCPcopy Index your code
hub / github.com/RustPython/RustPython / _shallow_copy

Method _shallow_copy

Lib/_pydecimal.py:3986–3991  ·  view source on GitHub ↗

Returns a shallow copy from self.

(self)

Source from the content-addressed store, hash-verified

3984 self.traps[flag] = 0
3985
3986 def _shallow_copy(self):
3987 """Returns a shallow copy from self."""
3988 nc = Context(self.prec, self.rounding, self.Emin, self.Emax,
3989 self.capitals, self.clamp, self.flags, self.traps,
3990 self._ignored_flags)
3991 return nc
3992
3993 def copy(self):
3994 """Returns a deep copy from self."""

Callers 4

sqrtMethod · 0.80
expMethod · 0.80
lnMethod · 0.80
log10Method · 0.80

Calls 1

ContextClass · 0.70

Tested by

no test coverage detected