Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #95507
| From | Peter Otten <__peter__@web.de> |
|---|---|
| Subject | Re: Storing dictionary locations as a string and using eval - alternatives? |
| Date | 2015-08-20 09:14 +0200 |
| Organization | None |
| References | <edc848bb-a2aa-4396-8975-deaf887cbe60@googlegroups.com> <87r3myv6vu.fsf@handshake.de> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.22.1440054883.28100.python-list@python.org> (permalink) |
dieter wrote: > Victor Hooi <victorhooi@gmail.com> writes: >> ... > I did not read your message body - just your "subject". That was a mistake ;) > 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 | 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