how to test for nesting inlist

cpsoct at my-deja.com cpsoct at my-deja.com
Mon Jan 22 07:07:17 EST 2001


What are list comprehensions? I have looked and looked and looked in
books and on www.python.org and i see no mention of these. Is this
something new? or i am i just getting tripped up by the jargon and list
compreshensions are something i already know by another name? I am
confused. Hmm.....

cheers,
kevin parks
seoul, korea
cpsoct at lycos.com


In article <mailman.980119825.5586.python-list at python.org>,
  Paul Prescod <paulp at ActiveState.com> wrote:
> cpsoct at my-deja.com wrote:
> >
> > Thanks. and here i get a chance to learn something
> > recursion hurts my brain. map does everything but make coffee
> > doesn't it. It is amazing to me how many places map and filter
> > show up. i used map with None to lace lists last night. amazing
> > the things you can do in python.....
>
> You can do a lot with list comprehensions that otherwise would be done
> with map and I think that the list comprehension versions are often
much
> more readable.
>
>  Paul Prescod
>
>


Sent via Deja.com
http://www.deja.com/



More information about the Python-list mailing list