Method / Functions - What are the differences?
Bruno Desthuilliers
bruno.42.desthuilliers at websiteburo.invalid
Wed Mar 3 10:48:43 EST 2010
John Posner a écrit :
> On 3/3/2010 5:56 AM, Bruno Desthuilliers wrote:
>> Eike Welk a écrit :
>>> John Posner wrote:
>>>> I've updated the text at this location:
>>>>
>>>> > http://cl1p.net/bruno_0301.rst/
>>>
>>> I think this is a very useful writeup!
>>> It would be perfect with a little bit of introduction that says:
>>> 1. - What it is: "The rough details of method look-up";
>>> 2. - which contains some of the questions that that made that authors
>>> write the text. This way people with similar questions can find it
>>> with Google.
>>>
>>
>> John, do you think you could something with the following ?
>
> Sure thing, Bruno. I'll incorporate/edit your new text below into a
> Python Wiki entry. The headings in the Documentation table of contents
> page (http://wiki.python.org/moin/Documentation) seem pretty sober, so I
> plan to use a straightforward title:
>
> FromFunctionsToMethods
What about "TheMagicBehindMethods" ? Mmm, not sure, so do what you think
is best.
> ... instead of the clearly superior ...
>
> ItsAFunctionItsAMethodItsAUseOfTheDescriptorProtocol
>
> Does this article belong in the "Advanced Topics" section of the page?
> I'm not sure, but I'll place it there for now. (Alternative suggestions
> welcome!)
I spotted this:
http://www.python.org/doc/faq/programming/#what-is-a-method
http://www.python.org/doc/faq/general/#why-must-self-be-used-explicitly-in-method-definitions-and-calls
Our text is probably a bit too long for a direct inclusion in the FAQ,
so I'd say it should go in the AdvancedTopics, and be linked from the FAQ.
>
> Yow, the mantle of responsibility weighs heavily upon my poor shoulders!
!-)
Thanks for doing the grunt work.
More information about the Python-list
mailing list