While trying to figure out this answer I see from the documentation that every stack frame has an f_globals member.
Is that designed to be manipulated on a per-callee basis?
I want to advertise a local variable to callees of a function, in a sort of "while we're within this call tree, this is the context decorators and utilities will use" way, without having to modify every function in the potential call graph to pass this along. It's not a great decorator when you have to rewrite the decorated function, after all.