simple question on dictionary usage

Frank Millman frank at chagford.com
Sat Oct 27 02:02:38 EDT 2007


>
> This should work -
>
> egt = dict([i for i in d.items() if i[0].startswith('E')])
>

Of course I meant record.items(), not d.items(). Sorry.

Frank




More information about the Python-list mailing list