It would be nice for scanfuncs to preserve order when scanning functions, although I will admit I don't know if this is possible.
According to the *.py scan—
funcs = pyclbr.readmodule_ex(name, [path])
funcnames = []
for key, val in funcs.items():
if (any(key.startswith(prefix) for prefix in prefixes) and
val.file == filename):
funcnames.append(key)
return funcnames
—the functions are stored in a dictionary returned by pyclbr, which clobbers order. Thus, despite providing empty, small, and large benchmark functions in that order, the result generally will not be. Ex:
