Adding methods to instances

Ed Leafe ed at
Sat Dec 17 03:09:18 CET 2005

On Dec 16, 2005, at 6:26 PM, ziga.seilnacht at 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

More information about the Python-list mailing list