[issue11700] mailbox.py proxy updates
R. David Murray
report at bugs.python.org
Sun Apr 17 17:57:35 CEST 2011
R. David Murray <rdmurray at bitdance.com> added the comment:
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.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11700>
_______________________________________
More information about the Python-bugs-list
mailing list