A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2002-June/025983.html below:

[Python-Dev] Dict constructor

[Python-Dev] Dict constructor [Python-Dev] Dict constructorDavid 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






RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4