Tim> func_code has been writable for some time. Here under 2.2a3: Whoops! Thanks for the correction. I'm still working from a 1.5.2 codebase in the rattlesnake stuff. That's the only context in which I've ever wanted to modify a function's code object, and, lo and behold, it's possible there as well... Skip