[Python-Dev] Dict constructor

David Abrahams David Abrahams" <david.abrahams@rcn.com
Thu, 27 Jun 2002 10:57:10 -0400


From: "Steve Holden" <sholden@holdenweb.com>

> But is it really common enough to merit special-casing what can anyway be
> spelt very simply:
>
> adict = {}
> for k in asequence:
>     dict[k] = sentinel
>
> ?

Yep.

-Dave