use strings to call functions

Bruno Desthuilliers bruno.42.desthuilliers at websiteburo.invalid
Wed Feb 10 08:51:19 EST 2010


Klaus Neuner a écrit :
> On Feb 10, 12:55 pm, Bruno Desthuilliers <bruno.
> 42.desthuilli... at websiteburo.invalid> wrote:
>> KlausNeunera écrit :
>>
>>
>>
>>> All right, I admit that eval() is evil and should never be used.
>> Can you tell the difference between your above statement and the following:
> 
> As already pointed out in my second post (though perhaps not
> explicitly enough),

Or perhaps is it me that failed to re-read a bit more of the thread 
before answering - I obviously missed the irony (and made an a... of 
myself), sorry :-/

> All
> I wanted to say is this: If there are no circumstances at all under
> which eval() can reasonably be used, then it should not be part of
> Python. As it is part of Python (and as Python is a carefully designed
> language), there will most probably some situations in which one might
> want to use it.

Indeed.





More information about the Python-list mailing list