(limit=None, file=None, chain=True)
Shorthand for 'print_exception(*sys.exc_info(), limit, file)'.
Shorthand for 'print_exception(*sys.exc_info(), limit, file)'.
Shorthand for print_exception ( * sys . exc_info () limit file ) .
def print_exc(limit=None, file=None, chain=True):
    """Shorthand for 'print_exception(*sys.exc_info(), limit, file)'."""
    if file is None:
        file = sys.stderr
    try:
        etype, value, tb = sys.exc_info()
        print_exception(etype, value, tb, limit, file, chain)
    finally:
        etype = value = tb = None
def print_exc ( limit = None , file = None , chain = True ) : if file is None : file = sys . stderr try : etype , value , tb = sys . exc_info ( ) print_exception ( etype , value , tb , limit , file , chain ) finally : etype = value = tb = None