1 #!/usr/bin/env python 2 3 switch = 0 4 5 class C: 6 7 if switch: 8 default = 100 9 else: 10 default = 101 11 12 def f(self, x=default): 13 return x 14 15 c = C() 16 result_101 = c.f() 17 result_202 = c.f(202) 18 19 # vim: tabstop=4 expandtab shiftwidth=4