MCPcopy Create free account
hub / github.com/cloudpipe/cloudpickle / _walk_global_ops

Function _walk_global_ops

cloudpickle/cloudpickle.py:418–423  ·  view source on GitHub ↗

Yield referenced name for global-referencing instructions in code.

(code)

Source from the content-addressed store, hash-verified

416
417
418def _walk_global_ops(code):
419 """Yield referenced name for global-referencing instructions in code."""
420 for instr in dis.get_instructions(code):
421 op = instr.opcode
422 if op in GLOBAL_OPS:
423 yield instr.argval
424
425
426def _extract_class_dict(cls):

Callers 1

_extract_code_globalsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected