List comprehension vs filter()

Chris Rebert clp2 at rebertia.com
Tue Apr 19 23:22:10 EDT 2011


On Tue, Apr 19, 2011 at 8:10 PM, Chris Angelico <rosuav at gmail.com> wrote:
<snip>
> type=lst[0]["type"].lower()

Tangent: Don't call it "type"; you're shadowing the built-in class of
the same name.

Cheers,
Chris



More information about the Python-list mailing list