Did I find the right examples for you? yes no

All Samples(1)  |  Call(0)  |  Derive(0)  |  Import(1)
str(object='') -> string

Return a nice string representation of the object.
If the argument is a string, the return value is the same object.

src/x/t/xtraceback-HEAD/xtraceback/test/test_tracebackinterface.py   xtraceback(Download)
 
from .cases import XTracebackStdlibTestCase
from .config import EXTENDED_TEST
 
 
    def _get_format_exc_lines(self):
        try:
            exec(EXTENDED_TEST, {})
        except:
            return traceback.format_exc()
    def _get_print_exc_str(self):
        stream = self.StringIO()
        try:
            exec(EXTENDED_TEST, {})
        except: