Safe eval, or how to get list from string

bwooster47 at gmail.com bwooster47 at gmail.com
Fri May 13 14:10:44 EDT 2005


> http://twistedmatrix.com/users/moshez/unrepr.py
> http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/364469

Thanks, this helps - but I was looking at using no additional modules,
or using something that came bundled in with python 2.3

I just discovered mx.Tools.NewBuiltins

It has something called "reval" looks that would fit my needs
perfectly.

Details:
http://www.faqts.com/knowledge_base/view.phtml/aid/4550/fid/538




More information about the Python-list mailing list