How can I list methods directly defined in a class (not inherited)?
<p>I am looking for something along the lines of <code>dir()</code>, but want to filter out non-instancemethods and attributes that are defined in super class/es.</p>
