Serhiy Storchaka added the comment: Ah, here is os.open() raises an exception. Thank you Mark.
On Linux it raises an exception with file name. >>> import os; os.open('non-existing', os.O_RDONLY | getattr(os, 'O_BINARY', >>> 0), 0x666) Traceback (most recent call last): File "<stdin>", line 1, in <module> FileNotFoundError: [Errno 2] No such file or directory: 'non-existing' ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue20384> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com