"Arnaud Delobelle" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
>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().

tjr



-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to