Builtin function vars() looks more Pythonic to me, but I see __dict__ used more frequently.
vars()
__dict__
The Python documentation indicates that they ar
I agree vars should be preferred. My rationale is that, as python evolves, vars might be extended to do more than __dict__ does (for example, work for objects with slots, possibly in 3.7).
vars