Eval (was Re: Question about the use of python as a scripting language)
Max Erickson
maxerickson at gmail.com
Thu Aug 10 10:59:45 EDT 2006
More information about the Python-list mailing list
Thu Aug 10 10:59:45 EDT 2006
- Previous message (by thread): Eval (was Re: Question about the use of python as a scripting language)
- Next message (by thread): Eval (was Re: Question about the use of python as a scripting language)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
skip at pobox.com wrote: > > Brendon> A shortcut occurs to me; maybe someone can tell me > what's wrong Brendon> with my reasoning here. It seems that > any string that is unsafe Brendon> to pass to eval() must > involve a function call, and thus must Brendon> contain an > opening paren. Given that I know that the data I Brendon> > expect contains no parens, would people expect this code to > be Brendon> safe: > > Unfortunately, no. If I define a class which has properties, > attribute assignment can involve arbitrary numbers of function > calls. > > Skip Is it possible to define a class and create an instance without using an open parens? I don't know how, but that isn't saying a great deal... max
- Previous message (by thread): Eval (was Re: Question about the use of python as a scripting language)
- Next message (by thread): Eval (was Re: Question about the use of python as a scripting language)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list