11.07.2015 Views

Python - ACE home page

Python - ACE home page

Python - ACE home page

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

The <strong>Python</strong> Interpreter: Keywordshelp> lambdaLambdas*******lambda_expr::= "lambda" [parameter_list]: expressionlambda_expr_nocond ::= "lambda" [parameter_list]: expression_nocondLambda expressions (sometimes called lambda forms) have the same syntactic position asexpressions. They are a shorthand to create anonymous functions; the expression "lambdaarguments: expression” yields a function object. The unnamed object behaves like a functionobject defined withdef (arguments):return expressionSee section *Function definitions* for the syntax of parameter lists. Note that functions createdwith lambda expressions cannot contain statements or annotations.Lecture 128

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!