Open kruzaavn opened 4 years ago
So progress on the pythonic array iteration branch has halted. I think there are some good things in the branch as far as condensing some of the code, and being more pythonic. Particularly sort_suits() in lowlayer.py, but the methods are functionally the same as the one in master.
However I don't believe this is a top priority. I can continue to make conversions to the for loops, but the issue may be long lived.
We've noticed that iterating though python lists and other iterable objects the following pattern is often used
pythonic iteration is
if the index of an iterable is needed use the enumerate function
for an example see base.py line 132