Created
March 8, 2016 16:51
-
-
Save moskytw/f7fb5bf91b71bdc7a20a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import inspect | |
from pprint import pprint | |
def f(): | |
pprint(inspect.stack()) | |
x = 1 | |
return x | |
def g(): | |
y = f() | |
return y | |
if __name__ == '__main__': | |
g() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment