[Python-ideas] Idea: Lazy ... statement

Greg Ewing greg.ewing at canterbury.ac.nz
Wed Oct 15 23:25:05 CEST 2008

Jim Jewett wrote:

> Part of the problem with setdefault is that calculating the default
> can be expensive.

There's already a superior replacement for setdefault,
i.e. use a defaultdict.


More information about the Python-ideas mailing list