Howto find dict members from a list of keys

Gabriel Genellina gagsl-py2 at yahoo.com.ar
Thu Mar 8 04:24:30 EST 2007


En Thu, 08 Mar 2007 05:37:48 -0300, Steven D'Aprano  
<steve at REMOVEME.cybersource.com.au> escribió:

> On Thu, 08 Mar 2007 05:26:22 -0300, Gabriel Genellina wrote:
>
>> found_dic_members = [d[key] for key in l]
>
> *self stares at the line of code*
>
> *self thinks about what he just posted*
>
> *self realises with acute embarrassment that he's jumped to conclusions
> and completely misunderstood the Original Poster's question*
>
> Oops! I'll just be slinking away now...

LOL! :)

(...now! But when I saw your previous post, I had to check whether it was  
*me* who misunderstood the OP answering with a silly one-liner...)


-- 
Gabriel Genellina




More information about the Python-list mailing list