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 petri.lehtinen
Recipients benjamin.peterson, georg.brandl, marco.ghidinelli, petri.lehtinen, r.david.murray
Date 2011-11-01.19:29:19
SpamBayes Score 7.504477e-09
Marked as misclassified No
Message-id <1320175760.01.0.173486103354.issue13254@psf.upfronthosting.co.za>
In-reply-to
Content
More specifically, this happens if the Maildir instance is created two seconds before items() is called:

>>> import time
>>> from mailbox import Maildir
>>> x = Maildir('test')  # has messages
>>> time.sleep(2.5)
>>> x.items()
[]

This happens because __init__() doesn't populate _toc, and mtimes haven't changed either, so _refresh() doesn't populate _toc either.
History
Date User Action Args
2011-11-01 19:29:20petri.lehtinensetrecipients: + petri.lehtinen, georg.brandl, benjamin.peterson, r.david.murray, marco.ghidinelli
2011-11-01 19:29:20petri.lehtinensetmessageid: <1320175760.01.0.173486103354.issue13254@psf.upfronthosting.co.za>
2011-11-01 19:29:19petri.lehtinenlinkissue13254 messages
2011-11-01 19:29:19petri.lehtinencreate