[issue1653416] OS X print >> f, "Hello" produces no error: normal?

Ned Deily report at bugs.python.org
Thu Sep 16 23:14:53 CEST 2010


Ned Deily <nad at 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 <report at bugs.python.org>
<http://bugs.python.org/issue1653416>
_______________________________________


More information about the Python-bugs-list mailing list