[XML-SIG] foo.bar vs. foo.get_bar()

Ken MacLeod ken@bitsko.slc.ut.us
04 Nov 1999 02:14:07 -0600


Paul Prescod <paul@prescod.net> writes:

> Is anyone yet willing to agree with me that computed attributes
> should be a language feature? Say uncle dammit!

I agree.  The proposed implementation (calling private
_get_FOO/_set_FOO in place of __getattr__/__setattr__) elegantly
supports both attribute access syntax and subclassing.

-- 
  Ken MacLeod
  ken@bitsko.slc.ut.us