delegation pattern via descriptor

kedra marbun kedra.marbun at gmail.com
Sat Jul 3 04:59:06 EDT 2010


if we limit our discussion to py:
why __{get|set|delete}__ don't receive the 'name' & 'class' from
__{getattribute|{set|del}attr}__
'name' is the name that is searched
'class' is the class whose __dict__ has 'name' bound to descriptor

delegator & delegator are terms from delegation pattern (oop) which is
a specialized  area of IoC
delegate refers to helper obj, which is descriptor obj in the case of
descriptor
delegator is the obj that delegates task to helper obj

oh crap, brazil lost, but i admit effort of the dutch is awesome
if fifa['wc']['2010'].winner is not netherlands: raise SystemError
#bugfix



More information about the Python-list mailing list