Author serhiy.storchaka
Recipients Arfrever, serhiy.storchaka, udoprog
Date 2012-12-03.09:22:21
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1354526541.5.0.849785870542.issue16597@psf.upfronthosting.co.za>
In-reply-to
Content
>>> f = open("/dev/full", "wb", buffering=0)
>>> f.write(b"Write to full device")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
OSError: [Errno 28] No space left on device
>>> f.close()
>>> f.closed
True
>>> f = open("/dev/full", "wb")
>>> f.write(b"Write to full device")
20
>>> f.close()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
OSError: [Errno 28] No space left on device
>>> f.closed
False


Python 2 has the same behavior using io.open.
History
Date User Action Args
2012-12-03 09:22:21serhiy.storchakasetrecipients: + serhiy.storchaka, Arfrever, udoprog
2012-12-03 09:22:21serhiy.storchakasetmessageid: <1354526541.5.0.849785870542.issue16597@psf.upfronthosting.co.za>
2012-12-03 09:22:21serhiy.storchakalinkissue16597 messages
2012-12-03 09:22:21serhiy.storchakacreate