Use the double-star (aka double-splat?) operator:
func(**{'type':'Event'})
is equivalent to
func(type="Event")
More Related Contents:
- Adding a element in dictionary which consist of dictionaries.
- I am trying to modify a dictionary value using the exec function
- How to copy a dictionary and only edit the copy
- Replace values in a pandas series via dictionary efficiently
- Why is dictionary ordering non-deterministic?
- How to keep track of class instances?
- Object of custom type as dictionary key
- Thread Safety in Python’s dictionary
- python filter list of dictionaries based on key value
- How can I access the nested data in this complex JSON, which includes another JSON document as one of the strings?
- How to get rid of double backslash in python windows file path string? [duplicate]
- How do I combine two lists into a dictionary in Python? [duplicate]
- Converting list of tuples into a dictionary
- How to reverse a dictionary that has repeated values
- How do I serialize a Python dictionary into a string, and then back to a dictionary?
- Get all keys of a nested dictionary [duplicate]
- How to create a dictionary of two pandas DataFrame columns
- Elegant way to remove fields from nested dictionaries
- python: read json and loop dictionary
- Using a dict to translate numbers to letters in python
- Python: use mysqldb to import a MySQL table as a dictionary?
- Is self.__dict__.update(**kwargs) good or poor style?
- How can I avoid “RuntimeError: dictionary changed size during iteration” error?
- Why updating “shallow” copy dictionary doesn’t update “original” dictionary? [duplicate]
- dataframe to dict such that one column is the key and the other is the value [duplicate]
- Python dictionary comprehension using locals() gives KeyError
- Pythonic way to convert a dictionary into namedtuple or another hashable dict-like?
- argparse argument order
- Converting a csv file into a list of tuples with python
- In Python, what determines the order while iterating through kwargs?