rafi wrote: > In the meantime another question I cannot find an answer to: any idea > why does eval() consider '=' as a syntax error? > > >>> eval ('a=1') > Traceback (most recent call last): > File "<stdin>", line 1, in ? > File "<string>", line 1 > a=1 > ^ > SyntaxError: invalid syntax
eval *evaluates* an expression. "a=1" is a statement. It has no value. -- Robert Kern [EMAIL PROTECTED] "In the fields of hell where the grass grows high Are the graves of dreams allowed to die." -- Richard Harter -- http://mail.python.org/mailman/listinfo/python-list