[Python-Dev] RFC for PEP 663: Improving and Standardizing Enum str(), repr(), and format() behaviors

2021-07-20 Thread Ethan Furman
PEP: 663 Title: Improving and Standardizing Enum str(), repr(), and format() behaviors Version: $Revision$ Last-Modified: $Date$ Author: Ethan Furman Discussions-To: python-dev@python.org Status: Draft Type: Informational Content-Type: text/x-rst Created: 23-Feb-2013 Python-Version: 3.11 Post-His

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

2021-07-20 Thread Guido van Rossum
On Tue, Jul 20, 2021 at 4:52 AM Nick Coghlan wrote: [Petr] > >> int PyLocals_GetReturnBehavior(); # better name? > [Nick] > > We've used "Kind" for similar APIs elsewhere, so calling this API > "PyLocals_Kind()" would make sense to me. > > > > However, there's a potential point of confusion her

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

2021-07-20 Thread Nick Coghlan
On Mon, 19 Jul 2021 at 22:08, Nick Coghlan wrote: > On Mon, 19 Jul 2021, 9:32 pm Petr Viktorin, wrote: >> The proposal assumes that in the future, ``PyLocals_Get``, and thus >> ``locals()``, will never gain another kind of return value, however >> unlikely that is. >> AFAICS, code that uses this