Re: Current stackdepth outside PyEval_EvalFrameEx

2006-10-25 Thread Fabiano Sidler
On Tuesday 24 October 2006 17:05, Neil Cerutti wrote: > Perhaps the inspect module will help? See 3.11.4 The Interpreter > Stack. No, sorry if I didn't eplain it well enough. I meant the object stack of the current frame, not the frame stack. In my function, I wanted to return the list of objects

Re: Current stackdepth outside PyEval_EvalFrameEx

2006-10-24 Thread Neil Cerutti
On 2006-10-24, Fabiano Sidler <[EMAIL PROTECTED]> 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. I

Re: Current stackdepth outside PyEval_EvalFrameEx

2006-10-24 Thread skip
>> I'm trying to implement a python function that returns the current >> stack depth of its frame. Maybe sys._getframe() or traceback.extract_stack()? Skip -- http://mail.python.org/mailman/listinfo/python-list

Re: Current stackdepth outside PyEval_EvalFrameEx

2006-10-24 Thread Fabiano Sidler
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

Current stackdepth outside PyEval_EvalFrameEx

2006-10-22 Thread Fabiano Sidler
Hi folks! 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? Greetings, Fips -- http://mail.python.or