[Python-Dev] Proposal: defaultdict
Fuzzyman
fuzzyman at voidspace.org.uk
Fri Feb 17 12:02:05 CET 2006
More information about the Python-Dev mailing list
Fri Feb 17 12:02:05 CET 2006
- Previous message: [Python-Dev] Proposal: defaultdict
- Next message: [Python-Dev] Proposal: defaultdict
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Martin v. Löwis wrote: > Guido van Rossum wrote: > >> Feedback? >> > > I would like this to be part of the standard dictionary type, > rather than being a subtype. > > d.setdefault([]) (one argument) should install a default value, > and d.cleardefault() should remove that setting; d.default > should be read-only. Alternatively, d.default could be assignable > and del-able. > > Also, I think has_key/in should return True if there is a default. > > And exactly what use would it then be ? Michael Foord > Regards, > Martin > _______________________________________________ > Python-Dev mailing list > Python-Dev at python.org > http://mail.python.org/mailman/listinfo/python-dev > Unsubscribe: http://mail.python.org/mailman/options/python-dev/fuzzyman%40voidspace.org.uk > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/python-dev/attachments/20060217/d2b578b4/attachment.htm
- Previous message: [Python-Dev] Proposal: defaultdict
- Next message: [Python-Dev] Proposal: defaultdict
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-Dev mailing list