Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(167)

Side by Side Diff: third_party/cython/src/Cython/Debugging.py

Issue 385073004: Adding cython v0.20.2 in third-party. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Reference cython dev list thread. Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 ###############################################
2 #
3 # Odds and ends for debugging
4 #
5 ###############################################
6
7 def print_call_chain(*args):
8 import sys
9 print(" ".join(map(str, args)))
10 f = sys._getframe(1)
11 while f:
12 name = f.f_code.co_name
13 s = f.f_locals.get('self', None)
14 if s:
15 c = getattr(s, "__class__", None)
16 if c:
17 name = "%s.%s" % (c.__name__, name)
18 print("Called from: %s %s" % (name, f.f_lineno))
19 f = f.f_back
20 print("-" * 70)
OLDNEW
« no previous file with comments | « third_party/cython/src/Cython/Debugger/libpython.py ('k') | third_party/cython/src/Cython/Distutils/__init__.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698