MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / pretty_flags

Function pretty_flags

tools/python-3.11.9-amd64/Lib/dis.py:139–151  ·  view source on GitHub ↗

Return pretty representation of code flags.

(flags)

Source from the content-addressed store, hash-verified

137}
138
139def pretty_flags(flags):
140 """Return pretty representation of code flags."""
141 names = []
142 for i in range(32):
143 flag = 1<<i
144 if flags & flag:
145 names.append(COMPILER_FLAG_NAMES.get(flag, hex(flag)))
146 flags ^= flag
147 if not flags:
148 break
149 else:
150 names.append(hex(flags))
151 return ", ".join(names)
152
153class _Unknown:
154 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