[Python-Dev] defaultdict proposal round three
Guido van Rossum
guido at python.org
Tue Feb 21 14:58:52 CET 2006
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.default_factory = 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/)
More information about the Python-Dev
mailing list