Petri Lehtinen <pe...@digip.org> added the comment: 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. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue13254> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com