”@

Home 

python Programming Glossary: max_dist

The Python yield keyword explained

http://stackoverflow.com/questions/231767/the-python-yield-keyword-explained

code def node._get_child_candidates self distance min_dist max_dist if self._leftchild and distance max_dist self._median yield.. distance min_dist max_dist if self._leftchild and distance max_dist self._median yield self._leftchild if self._rightchild and distance.. yield self._leftchild if self._rightchild and distance max_dist self._median yield self._rightchild And this is the caller result..