Did I find the right examples for you? yes no

All Samples(37)  |  Call(37)  |  Derive(0)  |  Import(0)
Return a list of records for the stack below the current exception.

        def trace(context=1):
    """Return a list of records for the stack below the current exception."""
    return getinnerframes(sys.exc_info()[2], context)
        


src/r/o/roundup-1.5.0/roundup/cgi/cgitb.py   roundup(Download)
         '<ol>',]
    from roundup.cgi.PageTemplates.Expressions import TraversalError
    t = inspect.trace(context)
    t.reverse()
    for frame, file, lnum, func, lines, index in t:
    indent = '<tt><small>%s</small>&nbsp;</tt>' % ('&nbsp;' * 5)
    traceback = []
    for frame, file, lnum, func, lines, index in inspect.trace(context):
        if file is None:
            link = _("&lt;file is None - probably inside <tt>eval</tt> "

src/w/e/Webware-for-Python-1.1.1/WebUtils/CGITraceback.py   Webware-for-Python(Download)
    if not isinstance(etype, basestring):
        etype = etype.__name__
    inspect_trace = inspect.trace(context)
 
    pyver = 'Python ' + sys.version.split(None, 1)[0] + '<br>' + sys.executable

src/o/t/otrace-0.30.9/tornademos/otrace.py   otrace(Download)
 
                    # Inspect frame where exception occurred
                    innerframe_records = inspect.trace()
                    outerframe_records = inspect.getouterframes(innerframe_records[0][0])
                    outerframe_records.reverse()
 
                    # Inspect frame where exception occurred
                    frame_records = inspect.trace()
 
                    try:

src/g/r/graphterm-0.52.0/graphterm/otrace.py   graphterm(Download)
 
                    # Inspect frame where exception occurred
                    innerframe_records = inspect.trace()
                    outerframe_records = inspect.getouterframes(innerframe_records[0][0])
                    outerframe_records.reverse()
 
                    # Inspect frame where exception occurred
                    frame_records = inspect.trace()
 
                    try:

src/o/t/otrace-0.30.9/otrace.py   otrace(Download)
 
                    # Inspect frame where exception occurred
                    innerframe_records = inspect.trace()
                    outerframe_records = inspect.getouterframes(innerframe_records[0][0])
                    outerframe_records.reverse()
 
                    # Inspect frame where exception occurred
                    frame_records = inspect.trace()
 
                    try:

src/o/t/otrace-HEAD/otrace.py   otrace(Download)
 
                    # Inspect frame where exception occurred
                    innerframe_records = inspect.trace()
                    outerframe_records = inspect.getouterframes(innerframe_records[0][0])
                    outerframe_records.reverse()
 
                    # Inspect frame where exception occurred
                    frame_records = inspect.trace()
 
                    try:

src/i/r/irco-0.8.1/irco/parsers/base.py   irco(Download)
    def _format_error(self, record, e, processor=None):
        frm = inspect.trace()[-1]
        mod = inspect.getmodule(frm[0])
        line = inspect.getsourcelines(frm[0])[1] + 1
        title = record.get('title', '')

src/s/p/spyne-HEAD/spyne/util/email.py   spyne(Download)
def email_exception(exception_address, message=""):
    # http://stackoverflow.com/questions/1095601/find-module-name-of-the-originating-exception-in-python
    frm = inspect.trace()[-1]
    mod = inspect.getmodule(frm[0])
    module_name = mod.__name__ if mod else frm[1]

src/c/l/claun-2.0.0.8/claun/core/log.py   claun(Download)
    global loggers
    stack = inspect.stack()
    trace = (' '.join(['%s:%s:%s:\n%s' % (caller[1], caller[3], caller[2], caller[4][0]) for caller in inspect.trace()]))
    caller = stack[1]
    message = '%s:%s:%s: %s' % (caller[1], caller[3], caller[2], message)

src/f/i/fivalid-0.3.0/fivalid/validators.py   fivalid(Download)
        :return: Generator object.
        """
        frame_records = inspect.trace()
        processed = set()
        for frame_record in frame_records:

  1 | 2 | 3 | 4  Next