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 akuchling
Recipients
Date 2007-01-12.18:41:07
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
I realized that making flush() invalidate keys breaks the final example in the docs, which loops over inbox.iterkeys() and removes messages, doing a pack() after each message.

Which platforms lack file.truncate()?  Windows has it; POSIX has it, so modern Unix variants should all have it.  Maybe mailbox should simply raise an exception (or trigger a warning?) if truncate is missing, and we should then assume that flush() has no effect upon keys.
History
Date User Action Args
2007-08-23 14:50:01adminlinkissue1599254 messages
2007-08-23 14:50:01admincreate