-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 20.10.2012 13:49, [email protected] wrote:
> data = eval(p.get())

...may be it's safer to use the json module instead of a plain (and
powerful! ;) 'eval' in several places:

>>> import json data = json.loads(p.get())

or at least the secured ast eval:

>>> import ast data = ast.literal_eval(p.get())

Any other optinions on this?

Thanks and greetings
DrTrigon
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with undefined - http://www.enigmail.net/

iEYEARECAAYFAlDgwOwACgkQAXWvBxzBrDAHggCcCXPNhTBHLUdPuaKT+ShWRHqO
pxsAn1YVwz7a/13gsbYJpQlIS5artSep
=Vgrz
-----END PGP SIGNATURE-----

_______________________________________________
Pywikipedia-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l

Reply via email to