result, candidates = list(), [self]
while candidates:
    node = candidates.pop()
distance = node._get_dist(obj)
if distance <= max_dist and distance >= min_dist:
    result.extend(node._values)
candidates.extend(node._get_child_candidates(distance, min_dist, max_dist))
return result
Можно ли определить функцию с точечным именем в Python?