On Wed, 4 May 2022 at 12:27, Dr. Guta Gábor <[email protected]> wrote: > > This proposal is about adding a builtin function or a package to the standard > library to access an element in an object hierarchy with default behavior > i.e. if at any level the attribute/key/index does not exist in the path the > function returns a default value. [...] > I created a package to demonstrate the idea: > https://github.com/axonmatics/quickpath
There's another PyPI library "glom" that does this sort of thing. I'm not sure there's enough need for this that it should be in the stdlib. And I'm certain it isn't sufficiently common to justify being a builtin. Paul _______________________________________________ Python-ideas mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/[email protected]/message/6DOKNFFSSTADE2DEUBOOBOZJABVTADIN/ Code of Conduct: http://python.org/psf/codeofconduct/
