[Python-Dev] [PEP 558] thinking through locals() semantics
v+python at g.nevcal.com
Mon May 27 23:53:55 EDT 2019
On 5/27/2019 7:28 PM, Steven D'Aprano wrote:
> On the other hand, locals() currently returns a dict everywhere. It
> might be surprising for it to start returning a proxy object inside
> functions instead of a dict.
I thought the proxy object sounded more useful... how different is it in
use from a dict? "proxy" sounds like it should quack like a dict, as a
general term, but maybe a more specific "proxy" is meant here, that
doesn't quite quack like a dict?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-Dev