Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
native_yaml_simple_dict solution in Uncategorized category for YAML. Simple Dict by Jon_Red
def yaml(a):
b=[[y.strip()for y in x.split(':')]for x in a.split('\n')if':'in x]
return dict([int(y)if y.isnumeric()else y.strip()for y in x]for x in b)
May 12, 2020