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@341 | 1 | from posix import read |
paul@331 | 2 | |
paul@331 | 3 | try: |
paul@331 | 4 | s = read(3, 10) |
paul@331 | 5 | except IOError, exc: |
paul@331 | 6 | print "read(3, 10): input/output error condition", exc.value |
paul@331 | 7 | |
paul@331 | 8 | s = read(0, 10) |
paul@331 | 9 | print s |