def print_results(chests):
    locale.setlocale(locale.LC_ALL, '')
    for chest in chests:
        itemcount = sum(chest.items.values())
        print("%s at %s,%s,%s with %d items:" % \
            (chest.type,\
            locale.format("%0.1f",chest.pos.x,grouping=True),\
            locale.format("%0.1f",chest.pos.y,grouping=True),\
            locale.format("%0.1f",chest.pos.z,grouping=True),\
            itemcount))
        for blockid,count in chest.items.items():
            print("   %3dx Item %d" % (count, blockid))
dataset/ETHPy150Open twoolie/NBT/examples/chest_analysis.py/print_results/original