On Fri, Sep 18, 2020 at 2:13 AM Alexis Masson <firstname.lastname@example.org> 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.
But locals().update() isn't a supported operation, except in the
situation where locals() is globals(). So what you're suggesting would
work fine in the REPL but not in any production usage.
Python-ideas mailing list -- email@example.com
To unsubscribe send an email to firstname.lastname@example.org
Message archived at https://email@example.com/message/M3JEIJ5EP7IVGRGNDZQVF4YKQ5PBGVJ3/
Code of Conduct: http://python.org/psf/codeofconduct/