I want to read a dictionary from a text file. This dictionary seems like {'key': [1, ord('@')]}. I read about eval() and literal_eval(), but none of those two will work due to ord().
I also tried json.loads and json.dumps, but no positive results.
Which other way could I use to do it?