micropython

Annotated tests/attributes_class_assignment.py

685:5f2c0e22fd40
2013-10-08 Paul Boddie Fixed relative import path interpretation to work within package roots. syspython-as-target
paul@404 1
#!/usr/bin/env python
paul@404 2
paul@404 3
class C:
paul@404 4
    clsattr = 123
paul@404 5
    clsattr2 = 456
paul@404 6
paul@404 7
C.clsattr = 789
paul@404 8
C.clsattr2 = 234
paul@404 9
paul@404 10
result_789 = C.clsattr
paul@404 11
result_234 = C.clsattr2
paul@404 12
paul@404 13
# vim: tabstop=4 expandtab shiftwidth=4