Pythonic search of list of dictionaries

Marc 'BlackJack' Rintsch bj_666 at
Tue Jan 4 15:57:46 EST 2005

In <lqclt05k3t6jp5iodvr671opd4cls096m5 at>, 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)

	Marc 'BlackJack' Rintsch

More information about the Python-list mailing list