Re: Eval (was Re: Question about the use of python as a scripting language)

2006-08-10 Thread skip
Brendon> Am I missing a third option? I can't think of one, but I'm not very smart. ;-) Skip -- http://mail.python.org/mailman/listinfo/python-list

Re: Eval (was Re: Question about the use of python as a scripting language)

2006-08-10 Thread Brendon Towle
On 10 Aug 2006, at 10:46 AM, [EMAIL PROTECTED] 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

Re: Eval (was Re: Question about the use of python as a scripting language)

2006-08-10 Thread Max Erickson
[EMAIL PROTECTED] 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 > ope

Re: Eval (was Re: Question about the use of python as a scripting language)

2006-08-10 Thread skip
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 dat

Re: Eval (was Re: Question about the use of python as a scripting language)

2006-08-10 Thread Brendon Towle
Oops -- I missed the subject line on my last post.On 10 Aug 2006, at 9:41 AM, [EMAIL PROTECTED] wrote:    Brendon> Seems that parsing negative numbers is outside of the scope of    Brendon> this routine. Here's the source (which is Frederik's source    Brendon> with one minor renaming; I take no cr