1 #!/usr/bin/env python 2 3 class C: 4 e = 123 5 6 class F: 7 def __init__(self): 8 self.e = 789 9 10 def f(obj): 11 obj.e = 456 # should rebind C.e 12 13 other = F() 14 f(C) 15 result_456 = C.e 16 17 # vim: tabstop=4 expandtab shiftwidth=4