A really bad idea.

Skip Montanaro skip at pobox.com
Fri Nov 15 12:48:56 EST 2002


    Dave> I wouldn't mind having a dictionary comp but don't need it nearly
    Dave> as much, ...

And you can always fudge it with a dictionary and a list comprehension:

    d = {}
    [d.update({...}) for ...]

or

    d = dict([(k,v) for ...])

Skip




More information about the Python-list mailing list