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


Groups > comp.lang.python > #30300

Ordering of mailbox.mbox contents?

Date 2012-09-27 10:59 -0500
From Tim Chase <python.list@tim.thechases.com>
Subject Ordering of mailbox.mbox contents?
Newsgroups comp.lang.python
Message-ID <mailman.1490.1348761486.27098.python-list@python.org> (permalink)

Show all headers | View raw


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

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

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

csiph-web