[Python-Dev] Re: Bug report

2021-07-22 Thread Ee Durbin
On Wed, Jul 21, 2021 at 7:45 PM Kyle Stanley wrote: > On Wed, Jul 21, 2021 at 12:19 PM Nguyen Do Minh Duc < > gd.minhduc1...@gmail.com> wrote: > >> Hi, >> >> When I find what's new in 3.10 beta in >> https://docs.python.org/whatsnew/3.10.html >> It redirected me to

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

2021-07-22 Thread Petr Viktorin
On 22. 07. 21 15:03, Ethan Furman wrote: On 7/22/21 1:01 AM, Petr Viktorin wrote: > On 21. 07. 21 14:18, Nick Coghlan wrote: >> >> typedef enum { >>  PyLocals_UNDEFINED = -1; >>  PyLocals_DIRECT_REFERENCE = 0, >>  PyLocals_SHALLOW_COPY = 1 >> }

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

2021-07-22 Thread Ethan Furman
On 7/22/21 1:01 AM, Petr Viktorin wrote: > On 21. 07. 21 14:18, Nick Coghlan wrote: >> >> typedef enum { >> PyLocals_UNDEFINED = -1; >> PyLocals_DIRECT_REFERENCE = 0, >> PyLocals_SHALLOW_COPY = 1 >> } PyLocals_Kind; >> >> PyLocals_Kind PyLocals_GetKind(void);

[Python-Dev] Re: Bug report

2021-07-22 Thread Nick Coghlan
On Thu, 22 Jul 2021, 9:47 am Kyle Stanley, wrote: > On Wed, Jul 21, 2021 at 12:19 PM Nguyen Do Minh Duc < > gd.minhduc1...@gmail.com> wrote: > >> Hi, >> >> When I find what's new in 3.10 beta in >> https://docs.python.org/whatsnew/3.10.html >> It redirected me to

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

2021-07-22 Thread Nick Coghlan
On Thu, 22 Jul 2021, 6:01 pm Petr Viktorin, wrote: > > > On 21. 07. 21 14:18, Nick Coghlan wrote: > > On Mon, 19 Jul 2021 at 21:32, Petr Viktorin wrote: > >> The proposal assumes that in the future, ``PyLocals_Get``, and thus > >> ``locals()``, will never gain another kind of return value,

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

2021-07-22 Thread Petr Viktorin
On 21. 07. 21 14:18, Nick Coghlan wrote: On Mon, 19 Jul 2021 at 21:32, 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 will usually