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[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:
The problem I have now (which I think is a 3.x thing), is that I can't use row[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][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?