use strings to call functions

OdarR olivier.darge at gmail.com
Mon Feb 8 16:39:33 EST 2010


On 8 fév, 22:28, a... at pythoncraft.com (Aahz) wrote:
> In article <0efe23a6-b16d-4f92-8bc0-12d056bf5... at z26g2000yqm.googlegroups.com>,
>
> OdarR  <olivier.da... at gmail.com> wrote:
>
> >and with eval(), did you try ?
>
> WARNING: eval() is almost always the wrong answer to any question

warning : it works !
another question ?


> --
> Aahz (a... at pythoncraft.com)           <*>        http://www.pythoncraft.com/
>
> import antigravity




More information about the Python-list mailing list