New submission from Petri Lehtinen <pe...@digip.org>: test_mbox is an mbox mailbox with a few messages in it.
>>> import mailbox >>> inbox = mailbox.mbox('test_mbox') >>> inbox.lock() >>> inbox.popitem() (0, <mailbox.mboxMessage instance at 0x7f78016bc680>) >>> inbox.flush() >>> inbox.unlock() >>> inbox.lock() >>> inbox.popitem() (1, <mailbox.mboxMessage instance at 0x7f7801653320>) >>> inbox.flush() Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python2.7/mailbox.py", line 633, in flush (self._file_length, cur_len)) mailbox.ExternalClashError: Size of mailbox file changed (expected 141289, found 141147) ---------- components: Library (Lib) messages: 162528 nosy: petri.lehtinen priority: normal severity: normal status: open title: mailbox.mbox fails to pop two items in a row, flushing in between versions: Python 2.7, Python 3.2, Python 3.3 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue15036> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com