nested lists as arrays
Terry Reedy
tjreedy at udel.edu
Mon Feb 14 12:38:02 EST 2005
"Diez B. Roggisch" <deetsNOSPAM at web.de> wrote in message >
>And use xrange instead of range.
For small dimensions like 3,4,5, xrange is way overkill and perhaps takes
both more space and time. Since dim is a constant for a given puzzle, I
would set self._range = range(dim) in __init__() and use that to iterate.
And, as I said in another response, I would not iterate to make a move.
Terry J. Reedy
More information about the Python-list
mailing list