"10, 20, 30" to [10, 20, 30]

Tim Williams tim at tdw.net
Thu Nov 23 10:04:20 EST 2006


On 23/11/06, Fredrik Lundh <fredrik at pythonware.com> wrote:
> Tim Williams wrote:
> >>>>
>
> and the use of a list comprehension is pretty silly to, given that you want
> to apply the same *function* to all items, and don't really need to look
> it up for every item:
>
>     map(int,  s.split(','))

Haha, thanks Frederic,  I wondered how long it would take for a reply
from you :)

"Silly" though ??

Tim :)



More information about the Python-list mailing list