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

Function _find_store_names

Lib/dis.py:1026–1039  ·  view source on GitHub ↗

Find names of variables which are written in the code Generate sequence of strings

(co)

Source from the content-addressed store, hash-verified

1024 yield (names[oparg >> 2], level, fromlist)
1025
1026def _find_store_names(co):
1027 """Find names of variables which are written in the code
1028
1029 Generate sequence of strings
1030 """
1031 STORE_OPS = {
1032 opmap['STORE_NAME'],
1033 opmap['STORE_GLOBAL']
1034 }
1035
1036 names = co.co_names
1037 for _, _, op, arg in _unpack_opargs(co.co_code):
1038 if op in STORE_OPS:
1039 yield names[arg]
1040
1041
1042class Bytecode:

Callers

nothing calls this directly

Calls 1

_unpack_opargsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…