[Python-Dev] Consistency questions

Skip Montanaro skip@mojam.com (Skip Montanaro)
Thu, 20 Jul 2000 09:14:26 -0500 (CDT)

    >> #2. Why doesn't dir( obj ) return inherited methods?

    Thomas> Because inherited methods (and other inherited attributes)
    Thomas> aren't stored in an instance's __dict__.

dir() *could* be smarter and walk up the chain starting at __class__ looking
for useful stuff to include.  Unfortunately, dir() is written in C so it's
harder to modify than it ought to be...