Acrimony in c.l.p.
Ganesan R
rganesan at myrealbox.com
Mon Dec 23 02:17:45 EST 2002
>>>>> "dsavitsk" == dsavitsk <dsavitsk at e-coli.net> writes:
> Point taken. However, I suppose I am meaning something shallower. For
> example, writing
>>>> l = [i for i in range(10)]
> instead of
>>>> l = []
>>>> for i in range(10):
> ... l.append(i)
> is less readable, imo, to a newbie. I don't think this is either a negative
> or a positive, or an encouragement to use one syntax over another, but
> simply an observation that one seems more readable to someone just starting.
>>>> l = range(10)
is probably even more readable :-).
--
Ganesan R
More information about the Python-list
mailing list