Paul Rubin wrote:
Lie Ryan <[EMAIL PROTECTED]> writes:
in python 2.6, ast.literal_eval may be used to replace eval() for literals.

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

Easy to try.  Since it is not a literal or display,
 ValueError: malformed string, just as with set({1,2,3])
>>> [1]*999999999 # or
>>> eval('[1]*999999999') # give a quick MemoryError

--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to