Ed Leafe wrote: > On Nov 16, 2007, at 1:04 PM, Paul McNett wrote: > >> No, appdev code would still be: >> >> txt.FontSize += 2 >> >> >> ...but our property getter/setter machinery would interact with the >> _proxyget/set. > > How is that different/better than the __get/setattr__ approach?
__get/setattr__ is certainly easier to implement. However, it is much harder to debug and to understand what is going wrong when something is going wrong. AttributeErrors raised from code called from __getattr__ result in loops. I initially coded lots of things using that approach, and just got burned too many times. I'd feel very uncomfortable relying on that. -- pkm ~ http://paulmcnett.com _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev Searchable Archives: http://leafe.com/archives/search/dabo-dev This message: http://leafe.com/archives/byMID/dabo-dev/[EMAIL PROTECTED]
