Is Eval *always* Evil?

Hrvoje Niksic hniksic at xemacs.org
Thu Nov 11 02:24:54 EST 2010


Robert Kern <robert.kern at gmail.com> writes:

> On 2010-11-10 15:52 , Hrvoje Niksic wrote:
>> Simon Mullis<simon at mullis.co.uk>  writes:
>>
>>> If "eval" is not the way forward, are there any suggestions for
>>> another way to do this?
>>
>> ast.literal_eval might be the thing for you.
>
> No, that doesn't work since he needs to call methods.

You're right; I misread the post.



More information about the Python-list mailing list