Ned Deily <n...@acm.org> added the comment: At least for the original test case, the Python 3 equivalent does fail on OS X:
$ python3.1 Python 3.1.2 (r312:79360M, Mar 24 2010, 01:33:18) [GCC 4.0.1 (Apple Inc. build 5493)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> f = open('/dev/null') >>> print('Hello',file=f) Traceback (most recent call last): File "<stdin>", line 1, in <module> IOError: not writable >>> Perhaps this can be closed as "wont fix" for Python 2 and, if necessary, open a separate issue for checking fprintf and fwrite return values? ---------- nosy: +ned.deily _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue1653416> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com