PEP 318 - Function Modifier Syntax
Alexander Schmolck
a.schmolck at gmx.net
Tue Jun 10 09:55:07 EDT 2003
Roman Suzi <rnd at onego.ru> writes:
> >
> >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.
Apart from the fact that the python user community is not by any approximation
a subset of the LaTeX community, I find the argument that 'as' is confusing
because it is already used in import statements or SQL pretty dubious -- 'as'
in English is obviously used in a variety of contexts and both the import and
this use seem quite natural to me. foo(spam)[classmethod], OTOH has no meaning
in English or any other language and in python denotes an indexing operation.
'as
More information about the Python-list
mailing list