A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-list/2005-September/335616.html below:

which is more 'pythonic' / 'better' ?

which is more 'pythonic' / 'better' ? 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

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4