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@845 | 1 | def good(t): |
paul@845 | 2 | a, b, c = t |
paul@845 | 3 | |
paul@845 | 4 | def bad(t): |
paul@845 | 5 | a = t.__get_single_item_unchecked__(0) |
paul@845 | 6 | |
paul@845 | 7 | t = 1, 2, 3 |
paul@845 | 8 | good(t) |
paul@845 | 9 | bad(t) |