Thanks for the comments! Some food for thought. One comment: Paul Moore writes: > On Fri, 28 Aug 2020 at 09:30, Stephen J. Turnbull > <turnbull.stephen...@u.tsukuba.ac.jp> wrote:
> > True, but not really fair under my assumption that `x[i, default=d]` > > becomes the accepted way of doing it generally. dict.get would be a > > legacy in that case. > > So one of [,default=] and dict.get is redundant. Why make the existing > way the redundant one? What's the actual benefit? Consistency with practice in other subscriptables. That makes it easier to learn the language as a whole. But it seems that most people are +/- 0 on .get, and -1 on default=, so .get is much more likely to become the consistent way to do things. Steve _______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/66GFMAR3HNPSYVTTNW4MIFSR3S2LYHWN/ Code of Conduct: http://python.org/psf/codeofconduct/