Hello!
I opened an equally-named thread in the “Ideas section” and it got some traction.
The base idea is provide a default keyword-only option to attrgetter
and itemgetter
(if the item or attribute are not present that default would be returned).
As it was well received, I want to push it forward, but I’m here to ask for advice: is it “big enough” to worth a PEP or I should just open an issue for this behaviour? (note it has some discussions, some alternatives, and I’d want to reflect those).
Thanks!