• Facebook
  • Twitter
  • Reddit
  • StumbleUpon
  • Digg
  • email

All Samples(107)  |  Call(101)  |  Derive(0)  |  Import(6)
Shorthand for 'format_list(extract_stack(f, limit))'.

        def format_stack(f=None, limit=None):
    """Shorthand for 'format_list(extract_stack(f, limit))'."""
    if f is None:
        try:
            raise ZeroDivisionError
        except ZeroDivisionError:
            f = sys.exc_info()[2].tb_frame.f_back
    return format_list(extract_stack(f, limit))
        


src/w/e/Webware-for-Python-1.0.2/WebKit/Object.py   Webware for Python(Download)
			msg = 'DEPRECATED: %s (no doc string)' % method
		print msg
		try:
			from traceback import format_stack
			print format_stack(limit =3)[0]
		except Exception:
			print 'Could not determine calling function.'

src/e/r/erroneousness-HEAD/erroneous.py   erroneousness(Download)
    def __init__(self, details=None):
        stack = traceback.format_stack(limit=TB_LIMIT)
        self.__details = stringtools.compile_list(stack)
        if details:
            self.__details += details
 
        else:

src/c/o/cogen-0.2.1/cogen/core/util.py   cogen(Download)
            print>>output, '    | ',
            pprint(k, output)
            print>>output, '    From:'
            for i in traceback.format_stack(sys._getframe(1), backtrace):
                print>>output, i,
            if other:
                print>>output, '---      [ %r ]' % (other(func,a,k))

src/b/o/booleanminimize-HEAD/booleantools.py   booleanminimize(Download)
    def __init__(self, details=None, dictionary=None):
        '''@param details Additional exception information.
           @param dictionary Use this to return a dictionary
                             despite exception.
                             '''
 
        stack = traceback.format_stack(limit=TB_LIMIT)

src/e/v/eventghost-HEAD/trunk/eg/Classes/Log.py   eventghost(Download)
    def PrintStack(self, skip=0):
        strs = ['Stack trace (most recent call last) (%d):\n' % eg.revision]
        strs += traceback.format_stack(sys._getframe().f_back)[skip:]
        error = "".join(strs)
        self.Write(error.rstrip() + "\n", ERROR_ICON)
        if eg.debugLevel:
            sys.stderr.write(error)

src/e/v/eventghost-HEAD/eg/Classes/Log.py   eventghost(Download)
    def PrintStack(self, skip=0):
        strs = ['Stack trace (most recent call last) (%d):\n' % eg.revision]
        strs += traceback.format_stack(sys._getframe().f_back)[skip:]
        error = "".join(strs)
        self.Write(error.rstrip() + "\n", ERROR_ICON)
        if eg.debugLevel:
            sys.stderr.write(error)

src/w/e/Webware-for-Python-1.0.2/WebUtils/HTMLForException.py   Webware for Python(Download)
		frame = sys._getframe()
 
	# Return formatted stack traceback
	return HTMLForLines(traceback.format_stack(frame), options)
 
 
def HTMLForException(excInfo=None, options=None):

src/f/l/flup-1.0.3.dev-20100525/flup/server/fcgi_base.py   flup(Download)
    def timeout_handler(self, signum, frame):
        self.stderr.write('Timeout Exceeded\n')
        self.stderr.write("\n".join(traceback.format_stack(frame)))
        self.stderr.flush()
 
        raise TimeoutException
 

src/p/y/python_remote_debugger-HEAD/rdb/web_server.py   python_remote_debugger(Download)
  def thread(self, id):
    id = int(id)
    print id  
    print sys._current_frames()
    stack = '<br />'.join(traceback.format_stack(sys._current_frames()[id]))
    stack = traceback.format_stack(sys._current_frames()[id])
    locals = sys._current_frames()[id].f_locals

src/p/y/pylibs-HEAD/tornado/ioloop.py   pylibs(Download)
    def _handle_alarm(self, signal, frame):
        logging.warning('IOLoop blocked for %f seconds in\n%s',
                     self._blocking_log_threshold,
                     ''.join(traceback.format_stack(frame)))
 
    def start(self):
        """Starts the I/O loop.

  1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9  Next