Observer-Pattern by (simple) decorator
Gabriel Genellina
gagsl-py2 at yahoo.com.ar
Fri Jun 1 23:24:16 EDT 2007
En Fri, 01 Jun 2007 21:25:50 -0300, Wildemar Wildenburger
<wildemar at freakmail.de> escribió:
> Steven Bethard wrote:
>> I think you want to define __get__ on your Observable class so that it
>> can do the right thing when the method is bound to the instance:
>
> It took me quite some time understanding what the __get__ method does,
> but I think now I figured it out. I've made a quantum leap in my
> understanding of Python (esp. method binding) with this! Awesome!
To proceed to next energy level, read some articles from
http://www.python.org/doc/newstyle/
--
Gabriel Genellina
More information about the Python-list
mailing list