MCPcopy Index your code
hub / github.com/python/cpython / _shallow_copy

Method _shallow_copy

Lib/_pydecimal.py:3989–3994  ·  view source on GitHub ↗

Returns a shallow copy from self.

(self)

Source from the content-addressed store, hash-verified

3987 self.traps[flag] = 0
3988
3989 def _shallow_copy(self):
3990 """Returns a shallow copy from self."""
3991 nc = Context(self.prec, self.rounding, self.Emin, self.Emax,
3992 self.capitals, self.clamp, self.flags, self.traps,
3993 self._ignored_flags)
3994 return nc
3995
3996 def copy(self):
3997 """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