Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
1# -*- coding: utf-8 -*-
2"""
3@file
4@brief Quelques questions d'ordre général autour du langage Python.
6"""
7import sys
8import traceback
11def call_stack():
12 """
13 @return traceback
14 """
15 exc_traceback = sys.exc_info()[-1]
16 return traceback.extract_tb(exc_traceback), "".join(traceback.format_tb(exc_traceback))