List comprehension vs filter()

Chris Rebert clp2 at rebertia.com
Wed Apr 20 05:22:10 CEST 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