Referring to class methods in class attributes
Bruno Desthuilliers
bruno.42.desthuilliers at websiteburo.invalid
Thu Feb 18 04:43:17 EST 2010
Mark Lawrence a écrit :
> Ben Finney wrote:
>> Bruno Desthuilliers <bdesth.quelquechose at free.quelquepart.fr> writes:
>>
>>> Mmmm... Let's try to explain the whole damn thing. It's really (and
>>> IMHO beautifully) simple once you get it, but I agree it's a bit
>>> peculiar when compared to most mainstream OO languages.
>> […]
>>
>> Bruno, that's the first time I've understood the descriptor protocol, or
>> even understood *why* the descriptor protocol is important.
>>
>> Could you please post (a version of) this as a separate article
>> somewhere? A weblog post, or a new thread in this forum, or in the
>> documentation? Somewhere that web searches will find it prominently when
>> searching for the Python descriptor protocol.
>>
>> Thank you.
>>
>
> I'll second, third and fourth this request. More please Bruno, or from
> anybody similarly qualified.
>
> Thanks very much.
First, thanks Ben and Mark for the kind words...
I never tried to google for them, but there must be at least 4 previous
posts here where I tried to explain the topic. Perhaps this latest
attempt was better ?-) But anyway : if it's about making this text
easier to find, it seems that posting it here is not the most efficient
solution !-)
Anyway : I don't have a blog and don't really have enough time /
motivation for blogging. Now if anyone is willing and able to host such
a text on his own website / blog / whatever, I'd be happy to rework it
a bit.
/wrt to have it in the documentation and the "from anybody similarly
qualified", there's already a pretty comprehensive article in the
official docs (well : linked from the official docs), from someone who's
_way_ more qualified that I'll ever be - FWIW, everything I explained
here and all my knowledge of the descriptor protocol, methods etc come
from this article:
http://users.rcn.com/python/download/Descriptor.htm
But I understand it can be a bit intimidating for newcomers, so yes,
perhaps a lighter introductory text could be helpful. So guys, if you
think a revised version of my post would be of interest, I'll take you
on words: provide the hosting, I'll provide the content !-)
B.
More information about the Python-list
mailing list