A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2000-July/007000.html below:

[Python-Dev] Consistency questions

[Python-Dev] Consistency questions [Python-Dev] Consistency questionsSkip 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...

Skip




RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4