[EMAIL PROTECTED] 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 _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com