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 Spencer Brown, benjamin.peterson, ellingtonjp, ncoghlan, ned.deily, rhettinger, xiang.zhang
Date 2016-09-30.03:07:41
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1475204862.32.0.51005287002.issue27100@psf.upfronthosting.co.za>
In-reply-to
Content
Due to the expected semantics of AttributeError being relatively precise, changing to a protocol check rather than just changing the order we look up the protocol attributes would also involving changing from AttributeError to TypeError.

Since that's a potentially more disruptive change and just changing the order of the checks is likely sufficient to reduce confusion, the latter approach is preferable, at least for now (if folks are still getting confused by the time 3.7 rolls around, then that option would be worth reconsidering).
History
Date User Action Args
2016-09-30 03:07:42ncoghlansetrecipients: + ncoghlan, rhettinger, benjamin.peterson, ned.deily, xiang.zhang, Spencer Brown, ellingtonjp
2016-09-30 03:07:42ncoghlansetmessageid: <1475204862.32.0.51005287002.issue27100@psf.upfronthosting.co.za>
2016-09-30 03:07:42ncoghlanlinkissue27100 messages
2016-09-30 03:07:41ncoghlancreate