[issue11767] Maildir iterator leaks file descriptors by default

R. David Murray report at bugs.python.org
Wed Apr 6 22:18:52 CEST 2011


R. David Murray <rdmurray at bitdance.com> added the comment:

It is not clear from the docs what the expected behavior of factory is.  It is certainly the case that the custom classes used by mailbox by default do not close the file they are passed.  So either those classes should close the input file and factory should be so documented, or all the methods that create a message object should close the input file when they create one.  Since the existing get_message methods take care to close any opened input files, I favor the latter (ie: the OP's suggestion).

Anyone care to propose a patch?

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11767>
_______________________________________


More information about the Python-bugs-list mailing list