2016-08-30 | Paul Boddie | file changeset files shortlog | Added PythonLight alternative libraries. |
paul@2 | 1 | class C: |
paul@2 | 2 | def m(self): |
paul@2 | 3 | return 1 |
paul@2 | 4 | |
paul@2 | 5 | D = C # alias for C |
paul@2 | 6 | |
paul@2 | 7 | class E: |
paul@2 | 8 | def m(self): |
paul@2 | 9 | return 2 |
paul@2 | 10 | |
paul@2 | 11 | F = E # alias for E |
paul@2 | 12 | |
paul@2 | 13 | def f(): |
paul@2 | 14 | c = C |
paul@2 | 15 | d = D # C |
paul@2 | 16 | cm = C.m |
paul@2 | 17 | dm = D.m # C.m |
paul@2 | 18 | |
paul@2 | 19 | c = E |
paul@2 | 20 | d = F # E |
paul@2 | 21 | cm = E.m |
paul@2 | 22 | dm = F.m # E.m |
paul@2 | 23 | |
paul@2 | 24 | Cm = C.m |
paul@2 | 25 | Dm = D.m |
paul@2 | 26 | Em = E.m |
paul@2 | 27 | Fm = F.m |
paul@2 | 28 | |
paul@2 | 29 | def g(): |
paul@2 | 30 | Cm = E.m |
paul@2 | 31 | Dm = F.m # E.m |
paul@2 | 32 | |
paul@2 | 33 | def h(): |
paul@2 | 34 | global Em, Fm |
paul@2 | 35 | Em = C.m |
paul@2 | 36 | Fm = D.m # C.m |
paul@2 | 37 | |
paul@2 | 38 | Ci = C() |
paul@2 | 39 | Ei = E() |
paul@2 | 40 | |
paul@2 | 41 | def i(): |
paul@2 | 42 | c = Ci |
paul@2 | 43 | c = Ei |
paul@2 | 44 | |
paul@2 | 45 | def j(): |
paul@2 | 46 | global Ei |
paul@2 | 47 | Ei = C() |
paul@2 | 48 | |
paul@2 | 49 | L = [] |
paul@2 | 50 | M = [1] |
paul@2 | 51 | |
paul@2 | 52 | def k(): |
paul@2 | 53 | c = L |
paul@2 | 54 | |
paul@2 | 55 | def l(): |
paul@2 | 56 | global M |
paul@2 | 57 | M = [] |