Why I hate lambdas (Re: Do any of you recommend Python as afirst programming language?)
tjreedy at udel.edu
Tue Mar 25 01:11:41 CET 2008
"Arnaud Delobelle" <arnodel at googlemail.com> wrote in message
news:ce8f8ec1-80a0-49ac-8762-a8c9d4cbdcc0 at c19g2000prf.googlegroups.com...
>From what I remember when I looked at the source: stack frames execute
code objects, not functions. They don't know what function has
spawned them, only what code object they are executing. In fact when
one thinks of it, it makes more sense for code objects to have a name
(taken from the def statement) than for function objects, as there is
exactly one code object for every def statement.
This is what I tried to say before. Function objects have the attributes
needed to call the code. Code objects have attributes needed to execute
the code. Both have a name for str() and repr().
More information about the Python-list