def ttc_dump(ttc, data):
  """Dumps the ttc information.

  It provides a likely filename for each file, and lists the tables, providing
  either the TableEntry data, or the table tag and index of the file that first
  referenced the table.
  """
  names = ttc_filenames(ttc, data)

  table_map = {}
  for font_index, font_entry in enumerate(ttc.fonts):
    print '[%2d] %s' % (font_index, names[font_index])
    for table_index, table_entry in enumerate(font_entry.tables):
      table = ttc.tables[table_entry]
      if table_map not in table_entry:
        table_map[table_entry] = (font_index, table_index)
        print '  [%2d] %s %8d %8d' % (
            table_index, table.tag, table.offset, table.length)
      else:
        table_from = table_map[table_entry]
        print '  [%2d] %s @%d.%d' % (
            table_index, table.tag, table_from[0], table_from[1])
dataset/ETHPy150Open googlei18n/nototools/nototools/ttc_utils.py/ttc_dump/swapped operands of `not in`