Howto find dict members from a list of keys

Alexander Eisenhuth newsuser at stacom-software.de
Thu Mar 8 07:28:39 EST 2007


Yes it was the silly on-liner ... it was a bit ago I used it last time ... thanks

Gabriel Genellina schrieb:
> 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