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 ncoghlan
Recipients barry, benjamin.peterson, michael.foord, ncoghlan, r.david.murray
Date 2011-06-03.00:14:51
SpamBayes Score 9.320796e-10
Marked as misclassified No
Message-id <1307060092.26.0.772131908489.issue12248@psf.upfronthosting.co.za>
In-reply-to
Content
Hmm, that behaviour looks unrelated to the specific problem Michael reported.

The initial problem in this space was that defining __dir__() completely determined the result of dir() calls, but object.__dir__() didn't actually work, so you couldn't easily get the standard list of attributes in order to supplement it.

I don't believe there is any reason to have tightened up the type constraints while fixing that - dir() should be returning sorted(obj.__dir__()) and not caring about the exact return type of the magic method.
History
Date User Action Args
2011-06-03 00:14:53ncoghlansetrecipients: + ncoghlan, barry, benjamin.peterson, r.david.murray, michael.foord
2011-06-03 00:14:52ncoghlansetmessageid: <1307060092.26.0.772131908489.issue12248@psf.upfronthosting.co.za>
2011-06-03 00:14:51ncoghlanlinkissue12248 messages
2011-06-03 00:14:51ncoghlancreate