micropython

tests/failure/attributes_set_class.py

803:39ba98ecc020
2014-06-01 Paul Boddie Fixed a docstring to describe the method's actual return value. syspython-as-target
     1 #!/usr/bin/env python     2      3 class C:     4     clsattr = 123     5      6     def update(self, value):     7         self.attr = value     8         C.clsattr = value     9     10 c = C()    11 c.update(456)    12     13 # vim: tabstop=4 expandtab shiftwidth=4