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 serhiy.storchaka
Recipients Arfrever, serhiy.storchaka, udoprog
Date 2012-12-03.09:24:50
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1354526690.28.0.0254031693169.issue16597@psf.upfronthosting.co.za>
In-reply-to
Content
The bug only in C implementation.

>>> import _pyio
>>> f = _pyio.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>
  File "/home/serhiy/py/cpython/Lib/_pyio.py", line 732, in close
    self.flush()
  File "/home/serhiy/py/cpython/Lib/_pyio.py", line 1121, in flush
    self._flush_unlocked()
  File "/home/serhiy/py/cpython/Lib/_pyio.py", line 1128, in _flush_unlocked
    n = self.raw.write(self._write_buf)
OSError: [Errno 28] No space left on device
>>> f.closed
True
History
Date User Action Args
2012-12-03 09:24:50serhiy.storchakasetrecipients: + serhiy.storchaka, Arfrever, udoprog
2012-12-03 09:24:50serhiy.storchakasetmessageid: <1354526690.28.0.0254031693169.issue16597@psf.upfronthosting.co.za>
2012-12-03 09:24:50serhiy.storchakalinkissue16597 messages
2012-12-03 09:24:50serhiy.storchakacreate