micropython

tests/attributes_class_multiple.py

220:2fb8b284aba3
2009-05-23 Paul Boddie Added callable context vs. self argument validation in CheckFrame, plus a test which detects an attempt to fake the self argument with an incompatible instance.
     1 #!/usr/bin/env python     2      3 class C:     4     clsattr = 123     5     clsattr = 456     6      7 a = C     8 b = C.clsattr     9     10 # vim: tabstop=4 expandtab shiftwidth=4