[Python-ideas] Enhancing vars()

Stephen J. Turnbull turnbull.stephen.fw at u.tsukuba.ac.jp
Tue Dec 13 06:56:26 EST 2016


Nick Coghlan writes:

 > (With the lack of an underscore being due to the precedent set by
 > dict.fromkeys())
 > 
 > Armed with those, the "give me all the attributes from __dir__"
 > command would be:
 > 
 >     attrs = dict.from_attrs(obj, dir(obj))
                        A
Urk --------------------+

You sure you want to follow precedent?  My fingers really like that
typo, too!



More information about the Python-ideas mailing list