mailbox module difficulties
Eduardo Alvarez
!nospam!astrochelonian at gmail.com
Mon Nov 28 12:21:37 EST 2011
Hello, everyone,
I'm in the process of learning how to use the mailbox module with python
3.2. I've noticed the following seemingly inconsistent behavior:
if I call a Maildir object directly, the module works perfectly. I can,
for example, call
mailbox.Maildir("~/Maildir").items()
and get the expected list of (key,Message) pairs.
however, if I do the following:
b = mailbox.Maildir("~/Maildir")
b.items()
I get an empty list.
I don't understand why this is so, specially since the last example in
the documentation shows a reference to a Maildir object being created.
Why does this happen?
yours,
--
Eduardo Alvarez
More information about the Python-list
mailing list