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

Method copy

Lib/_pydecimal.py:3993–3999  ·  view source on GitHub ↗

Returns a deep copy from self.

(self)

Source from the content-addressed store, hash-verified

3991 return nc
3992
3993 def copy(self):
3994 """Returns a deep copy from self."""
3995 nc = Context(self.prec, self.rounding, self.Emin, self.Emax,
3996 self.capitals, self.clamp,
3997 self.flags.copy(), self.traps.copy(),
3998 self._ignored_flags)
3999 return nc
4000 __copy__ = copy
4001
4002 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