Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #95506
| From | dieter <dieter@handshake.de> |
|---|---|
| Subject | Re: Storing dictionary locations as a string and using eval - alternatives? |
| Date | 2015-08-20 07:57 +0200 |
| References | <edc848bb-a2aa-4396-8975-deaf887cbe60@googlegroups.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.21.1440050285.28100.python-list@python.org> (permalink) |
Victor Hooi <victorhooi@gmail.com> 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.
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Storing dictionary locations as a string and using eval - alternatives? Victor Hooi <victorhooi@gmail.com> - 2015-08-19 20:59 -0700 Re: Storing dictionary locations as a string and using eval - alternatives? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2015-08-20 14:43 +1000 Re: Storing dictionary locations as a string and using eval - alternatives? dieter <dieter@handshake.de> - 2015-08-20 07:57 +0200 Re: Storing dictionary locations as a string and using eval - alternatives? Peter Otten <__peter__@web.de> - 2015-08-20 09:14 +0200
csiph-web