Plase read the docs for the dir function before it's source code, before complaining so loud. Direct quote "Note Because dir() is supplied primarily as a convenience for use at an interactive prompt, it tries to supply an interesting set of names more than it tries to supply a rigorously or consistently defined set of names, and its detailed behavior may change across releases. For example, metaclass attributes are not in the result list when the argument is a class."
9 comments
[ 244 ms ] story [ 1766 ms ] threadhttp://bugs.python.org/issue19002
It looks like this is all for an autocompletion library. Why not just write jedi.dir (jedir?)
dir(inst, traverseclass=True)
Maybe the author should write a PEP?