Difference between dir(…) and vars(…).keys() in Python?
<p>Is there a difference between <code>dir(…)</code> and <code>vars(…).keys()</code> in Python?</p>

<p>(I hope there is a difference, because otherwise this would break the "one way to do it" principle... :)</p>
