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/2000-August/007934.html below:

A small proposed change to dictionaries' "get" method

[Python-Dev] Re: A small proposed change to dictionaries' "get" method [Python-Dev] Re: A small proposed change to dictionaries' "get" methodSkip Montanaro skip@mojam.com (Skip Montanaro)
Fri, 4 Aug 2000 13:07:28 -0500 (CDT)
    >> Also, we're talking about a method that would generally only be
    >> useful when dictionaries have values which were mutable objects.
    >> Irregardless of how useful instances and lists are, I still find that
    >> my predominant day-to-day use of dictionaries is with strings as keys
    >> and values.  Perhaps that's just the nature of my work.

    Guido> Must be.  I have used the above two idioms many times -- a dict
    Guido> of lists is pretty common.  I believe that the fact that you
    Guido> don't need it is the reason why you don't like it.

I do use lists in dicts as well, it's just that it seems to me that using
strings as values (especially because I use bsddb a lot and often want to
map dictionaries to files) dominates.  The two examples I posted are what
I've used for a long time.  I guess I just don't find them to be big
limitations.

Skip



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