KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
What I want to accomplish: dct = {'foo':0, 'bar':1, 'baz':2} def func(**dct): pass #function signature is now func(foo=0, bar=1, baz=2) However, the ** syntax is obviously clashing here between expanding a dict (what I want to do) and declaring a parameter that holds the keyword arguments (what I don't want to do). Is this possible?
Tags (comma-separated)
Save Edits
Cancel