[issue37509] OSError preadv()

2019-12-25 Thread YoSTEALTH
YoSTEALTH added the comment: I am closing this topic as its right for python to raise OSError as `-errno` must be assigned to e.g. `OSError(-errno, os.strerror(-errno))` to raise appropriate exception. -- resolution: -> not a bug stage: -> resolved status: open -> closed

[issue37509] OSError preadv()

2019-07-05 Thread YoSTEALTH
New submission from YoSTEALTH : import os import ctypes # Stdlib # -- def test_preadv_stdlib(path): fd = os.open(path, os.O_RDWR | os.O_CREAT) buffer = bytearray(10) buffers = [buffer] try: length = os.preadv(fd, buffers, 0, os.RWF_NOWAIT) # OSError: [Errno