On 01/07/2012 06:50 AM, Ian Kelly wrote:
On Fri, Jan 6, 2012 at 12:29 PM, dmitrey<dmitre...@gmail.com>  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.

a practical solution to this issue is to wrap the C functions in Python functions. You lose some speed but that might be an acceptable tradeoff in some situations (especially if you're only wrapping when debugging).

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

Reply via email to