On Tue, Dec 13, 2016 at 11:53:44AM +0000, Paul Moore wrote: [...] > There's obviously a speed-up from avoiding repeated getattr calls, but > is speed the key here?
Not for me. > The advantage of an "enhanced vars" is more likely to be ease of > discoverability, and I'm not sure dict.fromattrs gives us that > benefit. Also, the dict constructor gives a *copy* of the namespace, > where the proposal was for the proxy returned by vars() to provide > update capability (if I understand the proposal correctly). Correct. -- Steve _______________________________________________ Python-ideas mailing list Python-ideas@python.org https://mail.python.org/mailman/listinfo/python-ideas Code of Conduct: http://python.org/psf/codeofconduct/