Iterate over an object's "public" attributes
<p>Recently, I find myself writing code like this:</p>

<pre>
for name in dir( object ):
    if name.startswith( '__' ) : continue
    ...
</pre>

<p>Is there a more pythonic way to access the object's "public" namespace?</p>
