Amaury Forgeot d'Arc added the comment:

Something interesting:
- attribute setting uses PyObject_IsInstance, which is slower since the
introduction of ABCs.
- attribute reading uses PyObject_TypeCheck, which only searches the
__mro__.

Does this means that many calls to IsInstance could be replaced by
TypeCheck? Of course this makes sense only for new-style classes, but it
is the case for all built-in objects.

__________________________________
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue2115>
__________________________________
_______________________________________________
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to