[Python-Dev] Comments on PEP 558

2021-07-26 Thread Mark Shannon
Hi, First of all let me say that I agree with the aims of PEP 558 and most of the design. I do find the wording of the PEP itself a bit confusing in a couple of places. This critique is based on my understanding of the PEP. If I am mistaken in my misunderstanding, then treat that as an implie

[Python-Dev] Comments on PEP 558

2021-01-28 Thread Mark Shannon
Hi Nick, Regarding `f_locals` PEP 558 states: """ Instead of being a direct reference to the internal dynamic snapshot used to populate the independent snapshots returned by locals(), frame.f_locals will be updated to instead return a dedicated proxy type (implemented as a private subclass

[Python-Dev] Comments on PEP 558 (Defined semantics for locals() )

2020-01-22 Thread Mark Shannon
Hi, First of all I want to say that I'm very much in favour of the general idea behind PEP 558. Defined semantics is always better than undefined semantics :) However, I think there are a few changes needed: 1. Don't add anything to the C API, please. Frame attributes can be accessed via