[Python-Dev] Re: PEP 558: Defined semantics for locals() (December 2019 edition)

2020-01-01 Thread Yonatan Zunger
Makes sense. Thanks for the clarification! On Wed, Jan 1, 2020 at 1:30 AM Nick Coghlan wrote: > On Wed, 1 Jan 2020 at 10:42, Yonatan Zunger wrote: > > > > Thanks for writing this up, Nick! > > > > My main question is about the remaining difference between semantics at > the class/module versus

[Python-Dev] Re: PEP 558: Defined semantics for locals() (December 2019 edition)

2020-01-01 Thread Nick Coghlan
On Wed, 1 Jan 2020 at 10:42, Yonatan Zunger wrote: > > Thanks for writing this up, Nick! > > My main question is about the remaining difference between semantics at the > class/module versus function level: is it worth the additional cognitive > complexity to have the class/module behavior be di

[Python-Dev] Re: PEP 558: Defined semantics for locals() (December 2019 edition)

2019-12-31 Thread Yonatan Zunger
Thanks for writing this up, Nick! My main question is about the remaining difference between semantics at the class/module versus function level: is it worth the additional cognitive complexity to have the class/module behavior be different from the function behavior? The "mutable" class/module b