Pythonic search of list of dictionaries
bulba at bulba.com
Wed Jan 5 12:18:29 EST 2005
On Tue, 04 Jan 2005 21:57:46 +0100, Marc 'BlackJack' Rintsch
<bj_666 at gmx.net> wrote:
>In <lqclt05k3t6jp5iodvr671opd4cls096m5 at 4ax.com>, Bulba! wrote:
>> I put those dictionaries into the list:
>> oldl=[x for x in orig] # where orig=csv.DictReader(ofile ...
>If you don't "do" anything with each `x` you can write this as:
> oldl = list(orig)
I need to wrap my mind around Python more tightly. :-)
It's a man's life in a Python Programming Association.
More information about the Python-list