PEP 318 - Function Modifier Syntax

Roman Suzi rnd at onego.ru
Tue Jun 10 05:53:04 CEST 2003


On Tue, 10 Jun 2003, Ulrich Petri wrote:

>"Roman Suzi" <rnd at onego.ru> schrieb im Newsbeitrag
>news:mailman.1055178919.28798.python-list at python.org...
>> On 9 Jun 2003, Kevin Smith wrote:
>>
>> >This is the first draft of a PEP describing new syntax for applying
>> >function modifiers (e.g. classmethod, staticmethod, etc).  There is
>> >currently no implementation of the proposed syntax (I have heard rumors
>> >that the 'def foo(self) [...]' syntax has a patch somewhere, but I
>> >haven't seen it yet).  I have already received a few comments and will
>> >revise the document soon.  The latest version will always be available
>> >at http://www.python.org/peps/pep-0318.html.
>> >
>> >
>> >        def classmethod foo(self):
>> >            perform method operation
>>
>> oh no... I hope Python will not be another Java. I think current
>>
>
>The proposed syntax was (though its not easy to comprehend from the PEP)
>
>def foo(spam) as classmethod:
>    .....

This doesnt change my attitude to it. And if [,]-syntax is intuitevely
understandable (to those who likes TeX/LaTeX), this syntax is misleading
because "as" must mean "aka", as it is the case in Python's import operator or
SQL's semantics.

>Ciao Ulrich
>
>
>

Sincerely yours, Roman Suzi
-- 
rnd at onego.ru =\= My AI powered by GNU/Linux RedHat 7.3






More information about the Python-list mailing list