This is a bit old news. I think the resulting actions that came out of it were:
- `itemgetter` split into 2 objects
and - Link amended (was incorrect one): Allowing missing item or attributes in operator's itemgetter and attrgetter
Utilities of these 2 will cover this. I.e. getitem(..., default=) and itemgetter(..., default=)
and its iterator argument counterpart gititeritem & itemitergetter
, which will allow for default
iterable argument.
Anything more complex than that any time soon is unlikely. Be it list.get
(which is quite hefty implementation with fair amount of issues with sequence protocol) or custom operators.