Re: current recursion level

2006-08-06 Thread Simon Forman
Cameron Laird wrote: > In article <[EMAIL PROTECTED]>, > Simon Forman <[EMAIL PROTECTED]> wrote: > >David Bear wrote: > >> Is there an easy way to get the current level of recursion? I don't mean > . > . > . > >import sys > > > >def

Re: current recursion level

2006-08-06 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Simon Forman <[EMAIL PROTECTED]> wrote: >David Bear wrote: >> Is there an easy way to get the current level of recursion? I don't mean . . . >import sys > >def getStackDepth(): >'''Return the

Re: current recursion level

2006-08-03 Thread Simon Forman
David Bear wrote: > Is there an easy way to get the current level of recursion? I don't mean > sys.getrecursionlimit. I want to know during a live run of a script how > many times the functions has recursed -- curses, I don't know how to say it > better. > > -- > David Bear > -- let me buy your in

current recursion level

2006-08-03 Thread David Bear
Is there an easy way to get the current level of recursion? I don't mean sys.getrecursionlimit. I want to know during a live run of a script how many times the functions has recursed -- curses, I don't know how to say it better. -- David Bear -- let me buy your intellectual property, I want to o