
17 Sep
2020
17 Sep
'20
4:52 p.m.
On Fri, Sep 18, 2020 at 2:13 AM Alexis Masson a.masson555@ntymail.com 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.
ChrisA