This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ned.deily
Recipients BreamoreBoy, ajaksu2, christian.heimes, georg.brandl, lebigot, loewis, ned.deily, ronaldoussoren
Date 2010-09-16.21:14:51
SpamBayes Score 3.330669e-16
Marked as misclassified No
Message-id <1284671693.3.0.146583186186.issue1653416@psf.upfronthosting.co.za>
In-reply-to
Content
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?
History
Date User Action Args
2010-09-16 21:14:53ned.deilysetrecipients: + ned.deily, loewis, georg.brandl, ronaldoussoren, lebigot, christian.heimes, ajaksu2, BreamoreBoy
2010-09-16 21:14:53ned.deilysetmessageid: <1284671693.3.0.146583186186.issue1653416@psf.upfronthosting.co.za>
2010-09-16 21:14:51ned.deilylinkissue1653416 messages
2010-09-16 21:14:51ned.deilycreate