how to get id(function) for each function in stack?

Ian Kelly ian.g.kelly at
Fri Jan 6 14:50:43 EST 2012

On Fri, Jan 6, 2012 at 12:29 PM, dmitrey <dmitrey15 at> wrote:
> Python build-in function sum() has no attribute func_code, what should
> I do in the case?

Built-in functions and C extension functions have no code objects, and
for that reason they also do not exist in the stack.  There is no way
to find sum() in the Python stack, because it isn't there.

More information about the Python-list mailing list