micropython

tests/attributes1.py

217:62219b8d6baf
2009-05-17 Paul Boddie Fixed context detection in CheckFrame.
     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         C.clsattr    13     14 C    15 C.clsattr    16 C(456).update(789)    17     18 # vim: tabstop=4 expandtab shiftwidth=4