This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ethan.furman
Recipients davidhalter, ethan.furman, r.david.murray
Date 2013-09-11.13:36:11
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1378906571.54.0.245834669073.issue19002@psf.upfronthosting.co.za>
In-reply-to
Content
It's going to take more than "I think that that's not true," to get a change made.

From http://docs.python.org/2/library/functions.html#dir :
> 
> 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 [...] .

Currently, `dir(cls)` returns information that tells us how instances of that class will behave.  Because metaclass methods have no direct effect on instance behavior, having dir return metaclass methods and attributes would be confusing.

If you want to know how a class is going to behave you need to `dir(cls.__class__)`.
History
Date User Action Args
2013-09-11 13:36:11ethan.furmansetrecipients: + ethan.furman, r.david.murray, davidhalter
2013-09-11 13:36:11ethan.furmansetmessageid: <1378906571.54.0.245834669073.issue19002@psf.upfronthosting.co.za>
2013-09-11 13:36:11ethan.furmanlinkissue19002 messages
2013-09-11 13:36:11ethan.furmancreate