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, eli.bendersky, ethan.furman, ncoghlan, pitrou, r.david.murray
Date 2013-09-16.09:02:46
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <CADiSq7dYuNE1dNWtPqgBARg7TxU9+uSAFCmeLN3pqAXuEkZBGg@mail.gmail.com>
In-reply-to <1379320610.32.0.0643181219351.issue19030@psf.upfronthosting.co.za>
Content
Right, we definitely want inspect to swallow the exceptions from
descriptors. My suggestion is merely to switch the order to be:
1. Try getattr
2. If that throws an exception, check __dict__ directly
3. If neither works (e.g. due to a buggy __dir__ method), ignore the
attribute entirely.

The problem at the moment is *working* descriptors that are designed to
fall back on the metaclass lookup are being mishandled.
History
Date User Action Args
2013-09-16 09:02:46ncoghlansetrecipients: + ncoghlan, barry, pitrou, r.david.murray, eli.bendersky, ethan.furman
2013-09-16 09:02:46ncoghlanlinkissue19030 messages
2013-09-16 09:02:46ncoghlancreate