1 #!/usr/bin/env python 2 3 class C: 4 clsattr = 123 5 6 def __init__(self, value): 7 self.instattr = value 8 self.clsattr 9 10 def update(self, value): 11 self.attr = value 12 self.clsattr = value 13 C.clsattr = value 14 15 C 16 C.clsattr 17 18 # vim: tabstop=4 expandtab shiftwidth=4