C-API PyObject_Call
Stefan Behnel
stefan_ml at behnel.de
Fri Mar 19 10:11:42 EDT 2010
moerchendiser2k3, 19.03.2010 14:12:
> In my case I call a funcion and I would like to get the line
> where the function returned.
>
> for instance:
>
>
> def my_function():
> return 3
>
> So I would like to get line 2(in C) somehow.
Ok, so you're looking for the C-level trace function in CPython, I guess.
Could you explain why you want to know the line number?
Stefan
More information about the Python-list
mailing list