[Python-Dev] defaultdict proposal round three (original) (raw)
Guido van Rossum guido at python.org
Tue Feb 21 14:58:52 CET 2006
- Previous message: [Python-Dev] defaultdict proposal round three
- Next message: [Python-Dev] defaultdict proposal round three
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 2/20/06, Bengt Richter <bokr at oz.net> wrote:
How about doing it as an expression, empowering ( ;-) the dict just afer creation? E.g., for
d = dict() d.defaultfactory = list you could write d = dict()**list
Bengt, can you let your overactive imagination rest for a while? I recommend that you sit back, relax for a season, and reflect on the zen nature of Pythonicity. Then come back and hopefully you'll be able to post without embarrassing yourself continuously.
-- --Guido van Rossum (home page: http://www.python.org/~guido/)
- Previous message: [Python-Dev] defaultdict proposal round three
- Next message: [Python-Dev] defaultdict proposal round three
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]