Adding methods to instances

Ed Leafe ed at leafe.com
Fri Dec 16 21:09:18 EST 2005


On Dec 16, 2005, at 6:26 PM, ziga.seilnacht at gmail.com wrote:

> You can also just use:
>
> t.dynamic = dynamic.__get__(t)

     OK, I've tried that, and it does indeed work well. I've never  
had occasion to use descriptors before, and while it's clear what's  
going on, it still has a 'magical' feel to it!

-- Ed Leafe
-- http://leafe.com
-- http://dabodev.com







More information about the Python-list mailing list