which is more 'pythonic' / 'better' ?
Terry Reedy
tjreedy at udel.edu
Tue Sep 13 13:55:19 EDT 2005
"gabor" <gabor at nekomancer.net> wrote in message
news:433d5$4326783e$c32e4536$22052 at news.flashnewsgroups.com...
> i'm sorry ;) it was a list of strings...
>
> the code was something like:
>
> for line in open('x.y'):
> line = line.split('\t')
>
> a better naming would be better it seems :)
Like 'fields', for a list of fields ;-?
Or your question could have either included the code above or simply
specified what 'line' was. Asking clear questions is a learning process.
Terry J. Reedy
More information about the Python-list
mailing list