setattr getattr confusion

Steven D'Aprano steve at REMOVE-THIS-cybersource.com.au
Sat Dec 8 09:32:54 EST 2007


On Sat, 08 Dec 2007 14:26:00 +0200, Donn Ingle wrote:

>> So you might want to describe your use-case.
> Um.. I wanted an object with Key to hold other data. I wanted a way to
> set that *other* data within Key without having to specify the "object
> in-between" everytime.

That's called "automatic delegation".


-- 
Steven



More information about the Python-list mailing list