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 martin.panter
Recipients martin.panter, r.david.murray, terry.reedy
Date 2015-11-07.00:42:47
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1446856967.88.0.991565609931.issue25538@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2015-11-07 00:42:47martin.pantersetrecipients: + martin.panter, terry.reedy, r.david.murray
2015-11-07 00:42:47martin.pantersetmessageid: <1446856967.88.0.991565609931.issue25538@psf.upfronthosting.co.za>
2015-11-07 00:42:47martin.panterlinkissue25538 messages
2015-11-07 00:42:47martin.pantercreate