def iter_args_suffixes(args, *prefixes):
    results = set()
    for name in args.iterkeys():
        for prefix in prefixes:
            if name == prefix:
                results.add(None)
            elif name.startswith(prefix + '.'):
                prefix, suffix = name.split('.', 1)
                if suffix.isdigit():
                    results.add(int(suffix))
    return [i % '.%d' if i is not None else '' for i in sorted(results)]
dataset/ETHPy150Open lalinsky/acoustid-server/acoustid/api/v2/__init__.py/iter_args_suffixes/swapped operands of `%`