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

Method copy

Tools/cases_generator/stack.py:360–367  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

358 out.emit(self.as_comment() + "\n")
359
360 def copy(self) -> "Stack":
361 other = Stack()
362 other.base_offset = self.base_offset
363 other.physical_sp = self.physical_sp
364 other.logical_sp = self.logical_sp
365 other.variables = [var.copy() for var in self.variables]
366 other.check_stack_bounds = self.check_stack_bounds
367 return other
368
369 def __eq__(self, other: object) -> bool:
370 if not isinstance(other, Stack):

Callers

nothing calls this directly

Calls 2

StackClass · 0.85
copyMethod · 0.45

Tested by

no test coverage detected