Ok, back to differences between 2.x and 3.x...
I have the following code to convert the sort key to a float:
def sort_key_func(row):
return float(row[76][0:5])
which (under 2.x) returned the value of the field in the current row in position 76 for a lengthof 5. It was called like this:
filedata.sort(key=sort_key_func)
The problem I have now (which I think is a 3.x thing), is that I can't use row[76][0:5] any more because it now returns the 76th record, fields 1 through 5, instead of the 76th field for 5 positions. To get the field I need row[X][76][0:5] where [X] is the row.
Again, I'm kinda new to Python, and this 2.x to 3.x has thrown me.. Any ideas?