Current stackdepth outside PyEval_EvalFrameEx
horpner at yahoo.com
Tue Oct 24 19:05:13 CEST 2006
On 2006-10-24, Fabiano Sidler <fabianosidler at gmail.com> wrote:
> On Monday 23 October 2006 02:20, I wrote:
>> I'm trying to implement a python function that returns the
>> current stack depth of its frame. Unfortunately, I don't see
>> any possibility to get this value outside of
>> PyEval_EvalFrameEx. Inside of it, I'd use the STACK_LEVEL
>> macro. How do I do it?
> No hints?
Perhaps the inspect module will help? See 3.11.4 The Interpreter
I make love to pressure. --Stephen Jackson
More information about the Python-list