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 r.david.murray
Recipients gruszczy, moyix, r.david.murray
Date 2011-04-06.20:18:51
SpamBayes Score 1.267524e-07
Marked as misclassified No
Message-id <1302121132.67.0.267209561637.issue11767@psf.upfronthosting.co.za>
In-reply-to
Content
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?
History
Date User Action Args
2011-04-06 20:18:52r.david.murraysetrecipients: + r.david.murray, gruszczy, moyix
2011-04-06 20:18:52r.david.murraysetmessageid: <1302121132.67.0.267209561637.issue11767@psf.upfronthosting.co.za>
2011-04-06 20:18:51r.david.murraylinkissue11767 messages
2011-04-06 20:18:51r.david.murraycreate