Nick Coghlan added the comment:
I was thinking that the notification dict could consist of mappings from
attribute names to already bound __set_name__ methods, so the double lookup
would be avoided that way (but hadn't actually sent the review where I
suggested that).
That is, on the second loop, the actual method call would be:
tmp = PyObject_CallFunctionObjArgs(value, type, key, NULL);
Have I missed something that would prevent that from working?
----------
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue28797>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com