Message187890
| Author |
arigo |
| Recipients |
arigo |
| Date |
2013年04月27日.07:33:30 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1367048010.96.0.3580561262.issue17852@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
In Python 2, a buffered file opened for writing is flushed by the C library when the process exit. In Python 3, the _pyio and _io modules don't do it reliably. They rely on __del__ being called, which is not neccesarily the case. The attached example ends with the file 'foo' empty (tested with Python 3.3 and the current trunk). The same example in Python 2 using the built-in open() cannot end with 'foo' empty. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2013年04月27日 07:33:31 | arigo | set | recipients:
+ arigo |
| 2013年04月27日 07:33:30 | arigo | set | messageid: <1367048010.96.0.3580561262.issue17852@psf.upfronthosting.co.za> |
| 2013年04月27日 07:33:30 | arigo | link | issue17852 messages |
| 2013年04月27日 07:33:30 | arigo | create |
|