[Python-Dev] Extended Function syntax

Guido van Rossum guido@python.org
2003年1月22日 12:24:21 -0500


A while ago there was a proposal floating around to add an optional
part to function/method definitions, that would replace the current
clumsy classmethod etc. notation, and could be used for other purposes
too. I think the final proposal looked like this:
 def name(arg, ...) [expr, ...]:
 ...body...
Does anyone remember or know where to find the thread where this
proposal was discussed? It ought to be turned into a PEP.
--Guido van Rossum (home page: http://www.python.org/~guido/)

AltStyle によって変換されたページ (->オリジナル) /