blob: 49e212e89c40fd7133522eaa94733de72003142f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
# Show the current frame's trace function, so that we can test what the
# command-line options do to the trace function used.
import sys
# Print the argument as a label for the output.
print sys.argv[1],
# Show what the trace function is. If a C-based function is used, then f_trace
# is None.
trace_fn = sys._getframe(0).f_trace
if trace_fn is None:
print "None"
else:
print trace_fn.im_class
|