On Sat, Aug 15, 2020, at 01:55, Steven D'Aprano wrote:
Of course we would not. So why are we even considering a language change to force every single subscriptable object to accept arbitrary keyword-only arguments unless the maintainer changes their class to explicitly reject them?
why would they have to "explicitly" reject them?
it seems like the most obvious way to implement this would be to just... pass the keyword arguments. if you pass an argument to a function that doesn't have them in its signature it's a TypeError. Thus *automatically* "rejecting" them, with no effort required by the author.
right? if that's not the case, what exactly is being proposed?