skip at pobox.com wrote: > Guido> Over lunch with Alex Martelli, he proposed that a subclass of > Guido> dict with this behavior (but implemented in C) would be a good > Guido> addition to the language. > > Instead, why not define setdefault() the way it should have been done in the > first place? When you create a dict it has the current behavior. If you > then call its setdefault() method that becomes the default value for missing > keys. That puts it off until 3.0. >From what I read I think defaultdict won't become builtin anyway. Georg
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