Message109781
| Author |
pitrou |
| Recipients |
BreamoreBoy, amaury.forgeotdarc, mkc, pitrou, skrah |
| Date |
2010年07月09日.18:51:17 |
| SpamBayes Score |
2.7857308e-05 |
| Marked as misclassified |
No |
| Message-id |
<1278701479.02.0.984374369131.issue5321@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
> The issue is that when close() calls flush(), errors are silently
> discarded
This has been fixed in 3.1 and 3.2:
$ ./python -c "with open('/dev/full', 'w') as f: print('a', file=f)"
Traceback (most recent call last):
File "<string>", line 1, in <module>
IOError: [Errno 28] No space left on device
However, it seems sys.stdout has a different treatment:
$ ./python -c "print('a')" > /dev/full
$ |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2010年07月09日 18:51:19 | pitrou | set | recipients:
+ pitrou, mkc, amaury.forgeotdarc, skrah, BreamoreBoy |
| 2010年07月09日 18:51:19 | pitrou | set | messageid: <1278701479.02.0.984374369131.issue5321@psf.upfronthosting.co.za> |
| 2010年07月09日 18:51:17 | pitrou | link | issue5321 messages |
| 2010年07月09日 18:51:17 | pitrou | create |
|