Lichen

tests/attr_base_usage_bad.py

544:8df59b6c2c68
2017-02-05 Paul Boddie Fixed internal mapping methods to accept explicit bucket sequences, preventing confusion when searching for entries in one set of buckets while attempting to populate another. Implemented various dictionary and set methods. Added set iteration support. Expanded the test of sets.
     1 class C:     2     def f(self):     3         return self.x     4      5 class D(C):     6     pass     7      8 class E(C):     9     def __init__(self, x):    10         self.x = x    11     12 d = D()    13 print d.f()    14     15 e = E(2)    16 print e.f()