[Python-ideas] Syntax for allowing extra keys when unpacking a dict as keyword arguments
Anders Hovmöller
boxed at killingar.net
Fri Apr 12 16:00:32 EDT 2019
> On 12 Apr 2019, at 19:16, Eric V. Smith <eric at trueblade.com> wrote:
>
> I don't want to speak for the OP, but I have a similar use case (which is why I wrote calllib). My use case is: I have number of callables that I don't control. I also have a dict of parameters that the callables might take as parameters. I want to call one of the callables, passing only the subset of parameters that that particular callable takes.
Could you expand on "that I don't control"? Where do these come from?
We have similar used cases in libs we've created but there we define that the API is that you must do **_ to be compatible with future versions of the lib.
/ Anders
More information about the Python-ideas
mailing list