A RetroSearch Logo

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

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2006-February/061256.html below:

[Python-Dev] Proposal: defaultdict

[Python-Dev] Proposal: defaultdict [Python-Dev] Proposal: defaultdictskip at pobox.com skip at pobox.com
Fri Feb 17 19:20:54 CET 2006
    >> Also, I think has_key/in should return True if there is a default.

    Fredrik> and keys should return all possible key values!

I think keys() and in should reflect reality.  Only when you do something
like

    x = d['nonexistent']

or

    x = d.get('nonexistent')

should the default value come into play.

Skip
More information about the Python-Dev mailing list

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