String2List: odd function
Michael Hudson
mwh21 at cam.ac.uk
Wed Jul 28 02:43:14 EDT 1999
"Isidor" <rodisi01 at my-deja.com> writes:
> When I read these messages, the first thing I thought was: "wow!
> *that's* what exec and eval do?!" I had read about them in the
> documentation, and I suspected that they were important, but I
> couldn't figure out what the heck they really did. A few unsuccessful
> experiments didn't help much either. Well, now I know a little more.
> However, I suspect that this use is not among the common uses for
> which exec and eval were designed. Would you be willing to reply with
> some examples of how you use these functions normally? What are they
> *really* used for? (As I collect more of these examples from others
> and from my own banging around, they will go on a web page w.
> credits, of course, to the example providers...and then someday...I
> will join the PSA...and then...and then...)
This article:
http://x39.deja.com/[ST_rn=ps]/getdoc.xp?AN=453014340
contains a moderately long example of using `exec' I posted to the
list a while back.
Have fun!
Michael
More information about the Python-list
mailing list