User Tools

Site Tools


convert_a_string_to_a_dictionary

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
convert_a_string_to_a_dictionary [2023/02/26 03:16] rajuconvert_a_string_to_a_dictionary [2023/02/26 03:28] (current) – [ast.literaleval] raju
Line 29: Line 29:
  
 See also: See also:
-  * https://docs.python.org/3/library/ast.html#ast.literal_eval - documentation on ast.literal_eval 
   * https://stackoverflow.com/questions/988228/convert-a-string-representation-of-a-dictionary-to-a-dictionary - where I got the answer from   * https://stackoverflow.com/questions/988228/convert-a-string-representation-of-a-dictionary-to-a-dictionary - where I got the answer from
  
Line 46: Line 45:
 </code> </code>
  
-One workaround is to convert ' to "+One workaround is to replace single quotes with double quotes
 <code> <code>
 In [3]: In [3]:
convert_a_string_to_a_dictionary.1677381390.txt.gz · Last modified: 2023/02/26 03:16 by raju