On May 4, 4:04 pm, Ben Finney <ben+pyt... at benfinney.id.au> wrote: > Wow. “What really happens is that rewrite rewrites the code, executes it > and quits.” But that's the best bit! It's the one aspect of the module for which a context manager would actually be applicable and there's not even a suggestion of it :)