On 14 juin, 10:31, TheSaint <[EMAIL PROTECTED]> wrote:
> Hi,
>
> It seems to be strange that give me syntax error inside an eval statement.
> I'm looking at it carefully but I can't see any flaw.
>
> Here it's part of the code:
>
> for nn in stn_items:
> value= eval('cp.%s' %nn)Hem... Not obvious from this snippet, but what's wrong with getattr(cp, nn) ? -- http://mail.python.org/mailman/listinfo/python-list
