1 from __future__ import print_function
4 def useless_function(first, second):
5 print("I have the wrong number of arguments.")
7 def function(frame, bp_loc, dict):
8 side_effect.bktptcmd = "function was here"
10 def another_function(frame, bp_loc, extra_args, dict):
11 se_value = extra_args.GetValueForKey("side_effect")
12 se_string = se_value.GetStringValue(100)
13 side_effect.fancy = se_string
15 def a_third_function(frame, bp_loc, extra_args, dict):
16 se_value = extra_args.GetValueForKey("side_effect")
17 se_string = se_value.GetStringValue(100)
18 side_effect.fancier = se_string
20 def empty_extra_args(frame, bp_loc, extra_args, dict):
21 if extra_args.IsValid():
22 side_effect.not_so_fancy = "Extra args should not be valid"
23 side_effect.not_so_fancy = "Not so fancy"