Message300603
-1 from me as well.
The need has already been fulfilled in other ways (defaultdict and __missing__). I don't think we need yet another way to do it.
Also, I suspect that the benefit of a lazy instantiation would be more than offset by cost of passing in the arguments (global variable lookup for the list builtin, a load constant for True, and the keyword argument processing).
Lastly, I don't like making the signature more complex or further breaking the already loose symmetry with dict.get() and dict.pop(). Likewise, this isn't parallel with other tools that take a default argument such as min(), max(), getattr(), etc. |
|
Date |
User |
Action |
Args |
2017-08-20 15:32:23 | rhettinger | set | recipients:
+ rhettinger, jimd, serhiy.storchaka |
2017-08-20 15:32:23 | rhettinger | set | messageid: <1503243143.07.0.111984836448.issue31240@psf.upfronthosting.co.za> |
2017-08-20 15:32:23 | rhettinger | link | issue31240 messages |
2017-08-20 15:32:22 | rhettinger | create | |
|