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 | import package.module |
paul@2 | 2 | |
paul@15 | 3 | C = module.Class |
paul@15 | 4 | c = module |
paul@15 | 5 | f = c.Class |
paul@2 | 6 | |
paul@2 | 7 | def t(): |
paul@15 | 8 | x = c.Class |
paul@214 | 9 | return x |
paul@214 | 10 | |
paul@315 | 11 | print C.attr # 457 |
paul@315 | 12 | print f.attr # 457 |
paul@315 | 13 | print t().attr # 457 |