Just out of curiosity: why dict.setdefault() has the default parameter that.... well, has a default value (None)? I used setdefault in the past, but I always specified a value. What's the use case of setting None by default? -- https://mail.python.org/mailman/listinfo/python-list
- Why dict.setdefault() has value as optional? Marco Sulla
- Re: Why dict.setdefault() has value as optional? Lars Liedtke
- Re: Why dict.setdefault() has value as optional? Marco Sulla