Q: newbie wants to eval()

lynx noone at nowhere.net
Sat Jun 30 19:40:04 EDT 2001


"Sean 'Shaleh' Perry" <shalehperry at home.com>, in
<mailman.993937666.16928.python-list at python.org>:

[...]
>         exec(input) # eval takes an expression, assignment is not

<blush> yes, so i found out. boy do i have egg on my face... i guess i'm
still thinking too Perl-ish, i couldn't get it out of my head that "eval"
is the way to execute arbitrary code. thanks to everybody for their help,
i've got it pretty much working now.

-- 
   PGP/GnuPG key (ID 1024D/BFE0D6D0) available from keyservers everywhere
    Key fingerprint = 3EBC 97FC 68AA 65F1 65E6  3D36 35F6 4213 BFE0 D6D0
                             "...life goes on
                  long after the thrill of living is gone..."



More information about the Python-list mailing list