counting items

Michael Hartl mhartl at post.harvard.edu
Wed Jan 12 17:09:44 EST 2005


That's cool!  Of course, walk returns a generator, so using a list
comprehension to turn it into a list seems natural, but I didn't
realize that list() does the same thing (and neither, apparently, did
the original implementor) -- although, with a little reflection, it
obviously must!

Michael




More information about the Python-list mailing list