2017-02-11 | Paul Boddie | file changeset files shortlog | Removed the size member from __attr, requiring strlen to be used to get the size where it is needed in the native functions. | attr-strvalue-without-size |
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 |