http://stackoverflow.com/questions/337688/dynamic-keyword-arguments-in-python
Probably rarely needed but may come in handy.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
arg_name = 'myarg' | |
some_method(**{arg_name: 'value'}) |