Safe eval, or how to get list from string

Joseph Garvin k04jg02 at kzoo.edu
Sun May 15 15:35:32 EDT 2005


bwooster47 at gmail.com wrote:

>>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
>
>  
>
If I remember correctly reval and it's brothers were deemed insecure,
are no longer developed, and are present only for sake of backwards
compatibility. See the global module index entry on it.



More information about the Python-list mailing list