Safe eval of insecure strings containing Python data structures?

Paul Rubin http
Thu Oct 9 12:01:00 EDT 2008


Lie Ryan <lie.1296 at gmail.com> writes:
> in python 2.6, ast.literal_eval may be used to replace eval() for 
> literals. 

What happens on literal_eval('[1]*999999999') ?



More information about the Python-list mailing list