@requires_segment_info
def stack_depth(pl, segment_info, full_stack=False):
 return str((len(segment_info[u'pdb'].stack) - (0 if full_stack else segment_info[u'initial_stack_length'])))

@ requires_segment_info def stack_depth ( pl , segment_info , full_stack = False ) : return str ( ( len ( segment_info [ u'pdb' ] . stack ) - ( 0 if full_stack else segment_info [ u'initial_stack_length' ] ) ) )
displays current stack depth result is relative to the stack depth at the time prompt was first run .