Message254245
Explanation of my example because it is tricky: The print is actually executed. Then the context manager exits, and the built-in buffered file object tries to flush its buffer and fails. The earlier write() call succeeds, because it only writes to the Python buffer, not the OS file descriptor. |
|
Date |
User |
Action |
Args |
2015-11-07 00:42:47 | martin.panter | set | recipients:
+ martin.panter, terry.reedy, r.david.murray |
2015-11-07 00:42:47 | martin.panter | set | messageid: <1446856967.88.0.991565609931.issue25538@psf.upfronthosting.co.za> |
2015-11-07 00:42:47 | martin.panter | link | issue25538 messages |
2015-11-07 00:42:47 | martin.panter | create | |
|