You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Support dict with combination of positional arguments, keyword arguments and **args #984
changed the title [-]Support dict with keyword arguments and **args[/-][+]Support dict with combination of positional arguments, keyword arguments and **args[/+]on Nov 23, 2015
Activity
gvanrossum commentedon Nov 23, 2015
Is this about the following?
The first works but the second gets:
I have three live occurrences of this.
[-]Support dict with keyword arguments and **args[/-][+]Support dict with combination of positional arguments, keyword arguments and **args[/+]JukkaL commentedon Nov 23, 2015
Yeah, that as well. I was thinking about
dict(x=1, **d).gvanrossum commentedon Nov 23, 2015
Oh, the latter is probably less common?
drewhaven commentedon Apr 6, 2016
Our code has a bunch of instances of the
b = dict(a, z=3)kind of constructor, using it to copy dicts with some specific values changed.JukkaL commentedon Apr 14, 2016
The discussion at #1370 (comment) is relevant.
Sync typeshed (#1389)
Sync typeshed (#1389)
Hack to type check keyword arguments to dict() better
Hack to type check keyword arguments to dict() better
Sync typeshed