Created
September 15, 2019 16:01
-
-
Save CodyKochmann/f7a3aabc2e9f63d3ac1a126ef7229776 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 sys | |
>>> sys.setprofile(lambda *a, **k: print(a,k)) | |
(<frame object at 0x10b2d9c18>, 'return', None) {} | |
(<frame object at 0x10b2e4428>, 'call', None) {} | |
(<frame object at 0x10b2e4428>, 'c_call', <built-in method values of dict object at 0x10bc7cfc0>) {} | |
(<frame object at 0x10b2e4428>, 'c_return', <built-in method values of dict object at 0x10bc7cfc0>) {} | |
(<frame object at 0x10b2e4428>, 'return', None) {} | |
>>> def add(a, b): | |
... return add(a+1,b) if a % 2 == 1 else a+b | |
... | |
(<frame object at 0x10b2df6e8>, 'call', None) {} | |
(<frame object at 0x10b2df6e8>, 'return', None) {} | |
(<frame object at 0x10b2e4428>, 'call', None) {} | |
(<frame object at 0x10b2e4428>, 'c_call', <built-in method values of dict object at 0x10bc7cfc0>) {} | |
(<frame object at 0x10b2e4428>, 'c_return', <built-in method values of dict object at 0x10bc7cfc0>) {} | |
(<frame object at 0x10b2e4428>, 'return', None) {} | |
>>> add(7,3) | |
(<frame object at 0x10b2d9c18>, 'call', None) {} | |
(<frame object at 0x10b2e9c88>, 'call', None) {} | |
(<frame object at 0x10b2e9e48>, 'call', None) {} | |
(<frame object at 0x10b2e9e48>, 'return', 11) {} | |
(<frame object at 0x10b2e9c88>, 'return', 11) {} | |
(<frame object at 0x10b2e9908>, 'call', None) {} | |
(<frame object at 0x10b2e9908>, 'c_call', <built-in function write_stdout>) {} | |
11(<frame object at 0x10b2e9908>, 'c_return', <built-in function write_stdout>) {} | |
(<frame object at 0x10b2e9908>, 'return', None) {} | |
(<frame object at 0x10b2e9c88>, 'call', None) {} | |
(<frame object at 0x10b2e9c88>, 'c_call', <built-in function write_stdout>) {} | |
(<frame object at 0x10b2e9c88>, 'c_return', <built-in function write_stdout>) {} | |
(<frame object at 0x10b2e9c88>, 'return', None) {} | |
(<frame object at 0x10b2d9c18>, 'return', None) {} | |
(<frame object at 0x10b2e4428>, 'call', None) {} | |
(<frame object at 0x10b2e4428>, 'c_call', <built-in method values of dict object at 0x10bc7cfc0>) {} | |
(<frame object at 0x10b2e4428>, 'c_return', <built-in method values of dict object at 0x10bc7cfc0>) {} | |
(<frame object at 0x10b2e4428>, 'return', None) {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment