def display_distinct(db, arg, flt, srt, lmt, skp): for val in db.distinct(arg, flt=flt, sort=srt, limit=lmt, skip=skp): sys.stdout.write(str(val) + '\n')
def display_short(db, flt, srt, lmt, skp): for val in db.distinct("addr", flt=flt, sort=srt, limit=lmt, skip=skp): sys.stdout.write(db.internal2ip(val) + '\n')