[Python-Dev] PEP 447: add type.locallookup (original) (raw)

Nick Coghlan ncoghlan at gmail.com
Fri Sep 13 12:42:46 CEST 2013


Perhaps "getdescriptor" would work as the method name? Yes, it can technically return a non-descriptor, but the primary purpose is to customise the retrieval of objects that will be checked to see if they're descriptors. It won't be invoked when looking for ordinary attributes in an instance dict, but will be invoked when looking on the class object.

Cheers, Nick. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-dev/attachments/20130913/ef922aa2/attachment.html>



More information about the Python-Dev mailing list