how to test for nesting inlist

Paul Prescod paulp at ActiveState.com
Sun Jan 21 18:28:49 EST 2001


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




More information about the Python-list mailing list