[Python-ideas] Add a dict with the attribute access capability
Ethan Furman
ethan at stoneleaf.us
Wed Nov 29 18:47:09 EST 2017
On 11/29/2017 03:34 PM, Chris Barker wrote:
> Am I I the only one that thinks this is a "Bad Idea"?
No, you're not.
> For me, it simply confuses even more the question of "is this code or is this data?" -- which is a difficult enough
> design question in a dynamic language.
As one of those who have created their own version of AttrDict, I can say it's both neat and tricky to use. I'm happy
to have it* as a third-party package, but I don't think it belongs in the stdlib.
--
~Ethan~
* attribute-access dicts in general, not mine in particular
More information about the Python-ideas
mailing list