30 Sep
2015
30 Sep
'15
11:28 a.m.
What are the pros and cons of making enumerate a sequence if its argument is a sequence? I found myself writing: for vertex, height in zip( self.cache.height_to_vertex[height_slice], range(height_slice.start, height_slice.stop)): I would have preferred: for height, vertex in enumerate( self.cache.height_to_vertex)[height_slice]: