On 22 July 2015 at 14:21, Ronald Oussoren <ronaldousso...@mac.com> wrote: >> >> 2. Is this useful, that you can think of, for anything other than connecting >> to Objective C? > > Not immediately. But then again, I initially thought that decorators would > have limited appeal as well :-). I guess this could be useful for other > proxy-like objects as well, especially when preloading the __dict__ is > relatively expensive. >
I think one place this could be immediately useful is in code using remote method invocation/remote attribute access. This allows one to subclass proxy types for remote objects, and call methods that resolve remotely in a seamless way. (And without having to download and pre-populate an entire API into the proxy-class __dict__) +1 I found the solution rather concise for the flexibility it adds as well. > Apart from direct usefulness this closes a hole in the way you can influence > attribute lookup. > > Ronald _______________________________________________ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com