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

Method load_stack_global

Lib/pickle.py:1677–1682  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1675 dispatch[GLOBAL[0]] = load_global
1676
1677 def load_stack_global(self):
1678 name = self.stack.pop()
1679 module = self.stack.pop()
1680 if type(name) is not str or type(module) is not str:
1681 raise UnpicklingError("STACK_GLOBAL requires str")
1682 self.append(self.find_class(module, name))
1683 dispatch[STACK_GLOBAL[0]] = load_stack_global
1684
1685 def load_ext1(self):

Callers

nothing calls this directly

Calls 4

find_classMethod · 0.95
UnpicklingErrorClass · 0.85
popMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected