Storing dictionary locations as a string and using eval - alternatives?

dieter dieter at
Thu Aug 20 07:57:57 CEST 2015

Victor Hooi <victorhooi at> writes:
> ...
I did not read your message body - just your "subject".

Instead of (the potentially insecure) "eval", I use "json.loads"
(combined with a "json.dumps" to get the "json" representation).
See the "json" module documentation.

More information about the Python-list mailing list