In a recent thread on python-ideas, Nick Coghlan said:

The reason I keep beating my head against this particular wall (cf. PEP 403's @in clauses and PEP 3150's given suites) is that my personal goal for Python is that it should be a tool that lets people express what they are thinking clearly and relatively concisely. As far as I have been able to tell, the persistent requests for "multi-line lambdas", cleaner lambda syntax, etc, are because Python doesn't currently make it easy to express a lot of operations that involve higher order manipulation of "one shot" callables - closures or custom functions where you *don't* want to re-use them, but Python still forces you to pull them out and name them.
2

In my post on arguments and parameters, I explained how arguments get matched up to parameters in Python. But how does this actually work under the covers?

Lower-level languages

In a language like C, a function call is compiled into something like this (assuming for simplicity that all params go on the stack, and the return value as well):

Push registers onto the stack for safe keeping.
Blog Archive
About Me
About Me
Loading
Dynamic Views theme. Powered by Blogger. Report Abuse.