Hacker Newsnew | past | comments | ask | show | jobs | submit | ramalho's commentslogin

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."


The ticket was also closed by the author as it what pretty much determined to be a "won't fix".

http://bugs.python.org/issue19002


It was closed by R. David Murray (a Python core developer), not David Halter (the author)


And for all those interested in the blog post, I recommend you read David Murray's reason and suggestion.


And the link straight to that is http://bugs.python.org/issue19002#msg197498


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: