On 22 July 2015 at 14:21, Ronald Oussoren <ronaldoussoren at 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
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4