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

Method copy

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

Source from the content-addressed store, hash-verified

573 return [ l.copy() for l in arg ]
574
575 def copy(self) -> "Storage":
576 new_stack = self.stack.copy()
577 variables = { var.name: var for var in new_stack.variables }
578 inputs = [ variables[var.name] for var in self.inputs]
579 assert [v.name for v in inputs] == [v.name for v in self.inputs], (inputs, self.inputs)
580 return Storage(
581 new_stack, inputs, self.copy_list(self.outputs), self.peeks,
582 self.check_liveness, self.spilled
583 )
584
585 @staticmethod
586 def check_names(locals: list[Local]) -> None:

Callers

nothing calls this directly

Calls 3

copy_listMethod · 0.95
StorageClass · 0.85
copyMethod · 0.45

Tested by

no test coverage detected