2020-07-16 | Paul Boddie | file changeset files shortlog | Fixed int limit macros by actually using the size of the int type. For wider types such as long, which may be usable on 64-bit platforms in place of int, 1L would need to be used instead of 1 in the calculation. An abstract native integer type might be introduced here and to the native library to allow wider types if appropriate. |
paul@2 | 1 | from A import D, f |
paul@2 | 2 | |
paul@2 | 3 | class C: |
paul@2 | 4 | c = 1 |
paul@270 | 5 | def m(self): |
paul@270 | 6 | return self.c |
paul@2 | 7 | |
paul@2 | 8 | class E(D): |
paul@2 | 9 | e = 2 |
paul@270 | 10 | def m(self): |
paul@270 | 11 | return self.e |
paul@2 | 12 | |
paul@2 | 13 | def g(x): |
paul@2 | 14 | return f(x) |