Alex Martelli wrote: > What about: > > c = compile(thestring, thestring, '<eval>') > > cc = new.code( ...all args from c's attributes, except the 5th > one, constants, which should instead be: > decimalize(c.co_consts)...)
Wow, what an elegant solution! I had no hope that it would be this simple. I always wondered what compile() was useful for and now I know at least one thing. I'll try it out tomorrow. Thanks a lot Alex! ~ Daniel -- http://mail.python.org/mailman/listinfo/python-list