micropython

tests/sealing.py

43:7adb33e8b1d1
2008-02-17 Paul Boddie Moved deliberately failing tests to a special directory. Added support for generating attribute access instructions. Added further tests of class and instance attributes. Added optimisation of collective predictable attribute accesses.
     1 #!/usr/bin/env python     2      3 class C:     4     clsattr = 123     5      6     def __init__(self, value):     7         self.instattr = value     8      9 # vim: tabstop=4 expandtab shiftwidth=4