On Oct 9, 2007, at 5:16 PM, David Binger wrote: > The only possibility I can think of would be to have the decorator > actually replace the code > object of the function it decorates with a modified code object. And this possibility seems especially unlikely in python 3, where the byte code compiler removes some of the values that a template would require.