calling a function indirectly

Jeff Hinrichs jlh at cox.net
Thu Feb 21 00:08:05 EST 2002


see:
http://mail.python.org/pipermail/python-list/2001-August/060976.html
for some info.   Unless you have total control over what is being eval'd you
are at risk.
-Jeff

"Rajarshi Guha" <rxg218 at psu.edu> wrote in message
news:a50udo$1dou at r02n01.cac.psu.edu...
> On Wednesday 20 February 2002 01:24 in comp.lang.python Jeff Hinrichs
wrote:
>
> > If you wanted to get away from the dangerous eval, you could put your
> > functions inside of a class and then,
>
> Why is eval dangerous?
>
> --
> -------------------------------------------------------------------
> Rajarshi Guha                  | email: rajarshi at presidency.com
> 417 Davey Laboratory           | web  : http:// www.jijo.cjb.net
> Dept. Of Chemistry             | ICQ  : 123242928
> Pennsylvania State University  | AIM  : LoverOfPanda
> -------------------------------------------------------------------
> GPG Fingerprint: DCCB 4D1A 5A8B 2F5A B5F6  1F9E CDC4 5574 9017 AF2A
> Public Key     : http://pgp.mit.edu/
> -------------------------------------------------------------------
> There is no truth to the allegation that statisticians are mean.
> They are just your standard normal deviates.
>





More information about the Python-list mailing list