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

Function pretty_flags

Lib/dis.py:171–183  ·  view source on GitHub ↗

Return pretty representation of code flags.

(flags)

Source from the content-addressed store, hash-verified

169}
170
171def pretty_flags(flags):
172 """Return pretty representation of code flags."""
173 names = []
174 for i in range(32):
175 flag = 1<<i
176 if flags & flag:
177 names.append(COMPILER_FLAG_NAMES.get(flag, hex(flag)))
178 flags ^= flag
179 if not flags:
180 break
181 else:
182 names.append(hex(flags))
183 return ", ".join(names)
184
185class _Unknown:
186 def __repr__(self):

Callers 1

_format_code_infoFunction · 0.85

Calls 3

appendMethod · 0.45
getMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…