eval vs. exec
Michael Hudson
mwh at python.net
Tue May 28 09:52:13 EDT 2002
Michael Hudson <mwh at python.net> writes:
> Simon Budig <Simon.Budig at unix-ag.org> writes:
[super_eval bytecodehack-lite-stylee]
> > I am not sure if I want to do this or if the interception of
> > sys.stdout is a more - uhm - Simon-friendly solution... ;-)
>
> Here's another crack. It works much the same way as the last one, but
> is somewhat more sensible...
[version using the compiler module]
Actually, the two versions I posted share a piece of (probably)
undesired behaviour. Can anyone spot it?
Cheers,
M.
--
This proposal, if accepted, will probably mean a heck of a lot of
work for somebody. But since I don't want it accepted, I don't
care. -- Laura Creighton, PEP 666
More information about the Python-list
mailing list