properties vs. eval()
Steve Holden
steve at holdenweb.com
Fri May 6 07:14:10 EDT 2005
Bob Rogers wrote:
> So you're saying you don't know the answer? The question wasn't
> "should I use setattr?"
>
No, the "*question*" was (paraphrasing slightly) "is [it] possible to
dispense with the compile step and use eval() alone while setting a
property" the *answer* was "you should use setattr".
If you don't see that this implies that using eval() is not a good idea
until other resources have been exhausted, then you need to understand:
"using eval() is not a good idea until other resources have been exhausted".
regards
Steve
--
Steve Holden +1 703 861 4237 +1 800 494 3119
Holden Web LLC http://www.holdenweb.com/
Python Web Programming http://pydish.holdenweb.com/
More information about the Python-list
mailing list