[Python-Dev] pickle.reduce and deconstruct functions

2020-02-08 Thread Andrew Barnert via Python-Dev
This was [posted on -ideas][1], but apparently many people didn't see it because of the GMane migration going on at exactly the same time. At any rate, Antoine Pitrou suggested it should be discussed on -dev instead. And this gives me a chance to edit it (apparently it was markdown-is enough to

[Python-Dev] Re: extern "C" { ... } in Include/cpython/*.h

2020-02-08 Thread Nick Coghlan
On Tue, 28 Jan 2020 at 20:43, Petr Viktorin wrote: > On 2020-01-27 21:42, Skip Montanaro wrote: > > I just noticed that Nick migrated the guts of Include/frameobject.h to > > include/cpython/frameobject.h. It's not clear to me that the latter > > should be #include'd directly from anywhere other t

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

2020-02-08 Thread Nick Coghlan
Unfortunately, the simplifications you propose would be backwards incompatible - it's existing behaviour that there's a real shared dict (even on optimised frames) where arbitrary extra attributes can be stored (even though they don't become accessible as Python variables). I don't want to make fra