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 michael.foord
Recipients benjamin.peterson, michael.foord
Date 2011-05-24.09:23:50
SpamBayes Score 0.00934355
Marked as misclassified No
Message-id <1306229031.01.0.0272931963515.issue12166@psf.upfronthosting.co.za>
In-reply-to
Content
Implementing a custom __dir__ method is fiddly because there is no way of obtaining the standard list of attributes that dir would return.

Moving the relevant parts of the dir implementation into object.__dir__ would allow a custom __dir__ to obtain the "standard list" by calling up to the base class.

See email discussion at:

http://mail.python.org/pipermail/python-ideas/2011-May/010319.html
History
Date User Action Args
2011-05-24 09:23:51michael.foordsetrecipients: + michael.foord, benjamin.peterson
2011-05-24 09:23:51michael.foordsetmessageid: <1306229031.01.0.0272931963515.issue12166@psf.upfronthosting.co.za>
2011-05-24 09:23:50michael.foordlinkissue12166 messages
2011-05-24 09:23:50michael.foordcreate