parameters: (flags)
return_statement: return ", ".join(names)
docstring: Return pretty representation of code flags.
docstring_summary: Return pretty representation of code flags.
docstring_tokens: Return pretty representation of code flags .
function: def pretty_flags(flags):
      """Return pretty representation of code flags."""
      names = []
      for i in range(32):
          flag = 1<<i
          if flags & flag:
              names.append(COMPILER_FLAG_NAMES.get(flag, hex(flag)))
              flags ^= flag
              if not flags:
                  break
      else:
          names.append(hex(flags))
      return ", ".join(names)
function_tokens: def pretty_flags ( flags ) : names = [ ] for i in range ( 32 ) : flag = 1 << i if flags & flag : names . append ( COMPILER_FLAG_NAMES . get ( flag , hex ( flag ) ) ) flags ^= flag if not flags : break else : names . append ( hex ( flags ) ) return ", " . join ( names )