You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
utils.py line 111 to end of function:
column_index = 0
for column in range(0,sheet.ncols):
column_item = sheet.cell_value(rowx=0, colx=column)
column_choice_list.append((column_index, column_item))
column_index = column_index + 1
return column_choice_list
First rewrite (better Python idioms):
for column_index in range(sheet.ncols):
column_item = sheet.cell_value(rowx=0, colx=column_index)
column_choice_list.append((column_index, column_item))
return column_choice_list
Second rewrite (use available concise functionality):
return enumerate(sheet.row_values(rowx=0))
Original issue reported on code.google.com by sjmac...@lexicon.net on 3 Dec 2009 at 11:15
The text was updated successfully, but these errors were encountered:
Original issue reported on code.google.com by
sjmac...@lexicon.net
on 3 Dec 2009 at 11:15The text was updated successfully, but these errors were encountered: