Skip to content

Instantly share code, notes, and snippets.

@moskytw
Created March 8, 2016 16:51
Show Gist options
  • Save moskytw/f7fb5bf91b71bdc7a20a to your computer and use it in GitHub Desktop.
Save moskytw/f7fb5bf91b71bdc7a20a to your computer and use it in GitHub Desktop.
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