[issue31538] mailbox does not treat external factories the same

2021-06-17 Thread Henk-Jaap Wagenaar
Change by Henk-Jaap Wagenaar : -- versions: +Python 3.10, Python 3.11 -Python 3.5, Python 3.6, Python 3.7 ___ Python tracker ___

[issue31538] mailbox does not treat external factories the same

2021-06-17 Thread Henk-Jaap Wagenaar
Change by Henk-Jaap Wagenaar : -- keywords: +patch nosy: +Cryvate nosy_count: 4.0 -> 5.0 pull_requests: +25362 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26776 ___ Python tracker

[issue31538] mailbox does not treat external factories the same

2017-09-21 Thread Henk-Jaap Wagenaar
Henk-Jaap Wagenaar added the comment: To me the documentation doesn't quite look right, in the case of no factory being passed, it runs: def __getitem__(self, key): """Return the keyed message; raise KeyError if it doesn't exist.""" if not self._factory: return

[issue31538] mailbox does not treat external factories the same

2017-09-20 Thread bpoaugust
New submission from bpoaugust: The default mailbox factory is mailbox.mboxMessage so I expect the following two statements to work the same: messages = mailbox.mbox("test.mbox") messages = mailbox.mbox("test.mbox", mailbox.mboxMessage) However they do not. The attached file generates the