[Python-ideas] adding possibility for declaring a function in Matlab's way

Stefan Behnel stefan_ml at behnel.de
Sat Feb 12 08:36:33 CET 2011
Géza, 12.02.2011 04:48:
> It would be nice if you could write a function header like this (besides,
> of course, the current way):
>
> def result=functionname(params):
>     ...
>     result=something

Maybe there should be a way to define a function that only returns a value 
based on an expression and that doesn't require a redundant 'return' 
statement. You know, like lambda. *wink*

Stefan




More information about the Python-ideas mailing list