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

Method copy

Lib/_pydecimal.py:3996–4002  ·  view source on GitHub ↗

Returns a deep copy from self.

(self)

Source from the content-addressed store, hash-verified

3994 return nc
3995
3996 def copy(self):
3997 """Returns a deep copy from self."""
3998 nc = Context(self.prec, self.rounding, self.Emin, self.Emax,
3999 self.capitals, self.clamp,
4000 self.flags.copy(), self.traps.copy(),
4001 self._ignored_flags)
4002 return nc
4003 __copy__ = copy
4004
4005 def _raise_error(self, condition, explanation = None, *args):

Callers 7

test_copyMethod · 0.95
setcontextFunction · 0.45
__pow__Method · 0.45
next_minusMethod · 0.45
next_plusMethod · 0.45
__init__Method · 0.45
__init__Method · 0.45

Calls 1

ContextClass · 0.70

Tested by 1

test_copyMethod · 0.76