Skip to content

Commit 9a8e590

Browse files
committed
PEP 558: Update to use a write-through proxy
It turns out that *any* write-back based design has inherent flaws that make it difficult to build a source debugger that reliably allows mutation of function local variables. So this switches to Nathaniel's suggested write-through proxy idea, but constrains it to only applying when a trace hook is installed. This means the official language level semantics can just use the simpler model where rebinding function local variables via locals() simply isn't possible - only folks already working with frames and trace functions will need to be aware of the semantics of the write-through proxy.
1 parent 86c06a7 commit 9a8e590

1 file changed

Lines changed: 242 additions & 156 deletions

File tree

0 commit comments

Comments
 (0)