New PEP: Attribute Access Handlers
Paul Prescod
paul at prescod.net
Sun Jul 23 14:17:15 EDT 2000
Christian Tanzer wrote:
>
> ...
>
> In short, folding get/set/del into one function sucks. Besides, it
> doesn't really help when you want to overload just get, but would like
> to keep the set/del of the ancestor.
That isn't true. You can chain gets to your ancestor's __attr_XXX__
method if you want, but handle sets yourself or vice versa.
--
Paul Prescod - Not encumbered by corporate consensus
New from Computer Associates: "Software that can 'think', sold by
marketers who choose not to."
More information about the Python-list
mailing list