Message133931
| Author |
r.david.murray |
| Recipients |
amaury.forgeotdarc, georg.brandl, r.david.murray, sdaoden, twouters |
| Date |
2011年04月17日.15:57:33 |
| SpamBayes Score |
2.200819e-06 |
| Marked as misclassified |
No |
| Message-id |
<1303055855.19.0.564710057546.issue11700@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Ah. Well, since the io module and its classes didn't exist when that code in mailbox.py was written, no, that's not what happened :)
Nor does 'file like object' in Python necessarily mean conformance to the io specification. We are *tending* in that direction, but the actual expected method set is really considerably smaller (and I'm not sure it is documented anywhere).
I will incorporate your suggestion into the patch, thanks. Ezio also pointed out that I should be checking for the 'closed' method's existence before calling it, so I will add that as well. |
|