How can I preserve or identify a caller's stack frame?
My brain feels slow today. I'm writing pre/post/invariants in Python using decorators. Currently, I need each call to specify the locals and globals for context, and this feels ugly. Is there a way to get the locals and globals from the decorator application level even though it's an arbitrary depth. That is, I'm trying to make ...