Nick Coghlan added the comment:

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).

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue27100>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to