I tried to convert this string literal into dictionary object in python without success:
args = 'key_1=895, key_2=f.Comment'
args = args.replace("'","")
args = dict(args)
But I got an error:
ValueError: dictionary update sequence element #0 has length 1; 2 is required
I knew that my args is still one string as .replace() that I tried to remove single quote did not work. How ? Please kindly help me converting to dictionary object, I just want it as a result: {'key_1':895,'key_2':'f.Comment'}. Thanks