[Python-ideas] Re: locals and exec // f-strings as assignment targets

2020-09-17 Thread Alexis Masson
OK, I admit defeat, you're indeed right. I thought it worked, but it doesn't; well, I've learned something today, thank you for that ! However, I stand firm on my original idea (just the same as what Brendan Barnwell wrote earlier)  : I still think returning a dict is the best way to implem

[Python-ideas] Re: locals and exec

2020-09-17 Thread Alex Hall
On Thu, Sep 17, 2020 at 8:33 PM Alexis Masson wrote: > On Fri, Sep 18, 2020 at 2:13 AM Alexis Masson > wrote: > > This, in addition with locals().update(_), feels much better to me. > Furthermore, it would allow other string-like classes, such as bytes or > bytearray, to use that feature. >