blob: 3708ac083ca623bbe05ef8657ce945684771c2d8 (
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.__name__
|