Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #30300 > unrolled thread

Ordering of mailbox.mbox contents?

Started byTim Chase <python.list@tim.thechases.com>
First post2012-09-27 10:59 -0500
Last post2012-09-27 10:59 -0500
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python


Contents

  Ordering of mailbox.mbox contents? Tim Chase <python.list@tim.thechases.com> - 2012-09-27 10:59 -0500

#30300 — Ordering of mailbox.mbox contents?

FromTim Chase <python.list@tim.thechases.com>
Date2012-09-27 10:59 -0500
SubjectOrdering of mailbox.mbox contents?
Message-ID<mailman.1490.1348761486.27098.python-list@python.org>
Reading through the docs[1] and the source, I'm trying to discern if
there's any guarantee that the contents of a mbox file remain in a
consistent ordering across add/delete calls.

As best I can tell from the source, it _looks_ like the code keeps
an existing file in the same order, deletions remove without
changing the order, and additions append at the end of the file in
the order they're added.  That's what I'd expect.

Is this accurate, or have I missed anything?

Thanks,

-tkc


[1]
http://docs.python.org/library/mailbox.html#mbox

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web