This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author rhettinger
Recipients jimd, rhettinger, serhiy.storchaka
Date 2017-08-20.15:32:22
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1503243143.07.0.111984836448.issue31240@psf.upfronthosting.co.za>
In-reply-to
Content
-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.
History
Date User Action Args
2017-08-20 15:32:23rhettingersetrecipients: + rhettinger, jimd, serhiy.storchaka
2017-08-20 15:32:23rhettingersetmessageid: <1503243143.07.0.111984836448.issue31240@psf.upfronthosting.co.za>
2017-08-20 15:32:23rhettingerlinkissue31240 messages
2017-08-20 15:32:22rhettingercreate