Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

No, but the Python yaml module is very easy to use and will convert the yaml notation into a form suitable for Python.

In [5]: yaml.load("{a: 1, b: 2}")
Out[5]: {'a': 1, 'b': 2}

similarly, the add_two_ints( a=1, b=2 ) form is equivalent to

d = {'a': 1, 'b': 2}

NOTE: the keyword-form is not recursive