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.

classification
Title: Remove old classes from mailbox module
Type: Stage:
Components: Library (Lib) Versions: Python 3.0, Python 2.6
process
Status: closed Resolution: accepted
Dependencies: Superseder:
Assigned To: Nosy List: akuchling, georg.brandl, hdiogenes
Priority: normal Keywords: patch

Created on 2008-05-11 02:49 by hdiogenes, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
mailbox-remove_deprecated_classes.patch hdiogenes, 2008-05-11 02:49 Removes deprecated classes
mailbox-remove_deprecated_doc.patch hdiogenes, 2008-05-11 03:00 Removes deprecated classes' documentation
Messages (4)
msg66596 - (view) Author: Humberto Diógenes (hdiogenes) * Date: 2008-05-11 02:49
mailbox.py has one section marked as "classes from the original 
module (for backward compatibility)", which are all listed as deprecated 
in the module documentation.

In issue 756982, A. M. Kuchling agreed that "removing those old classes in 
3.0 would be very sensible." I've attached a patch to do that, removing 
the only test that broke (test_unix_mbox).
msg66613 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2008-05-11 08:59
Thanks, committed patch as r63045.
msg66679 - (view) Author: Humberto Diógenes (hdiogenes) * Date: 2008-05-11 21:51
I think we should add a deprecation warning for those classes in 2.6, 
right?

As we're not removing the whole module, what's the right place to put 
that? On the __init__ method of each class?
msg66680 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2008-05-11 21:54
I added a deprecation notice to the docs. That should be enough.
History
Date User Action Args
2022-04-11 14:56:34adminsetgithub: 47063
2008-05-11 21:54:36georg.brandlsetmessages: + msg66680
2008-05-11 21:51:11hdiogenessetmessages: + msg66679
2008-05-11 08:59:51georg.brandlsetstatus: open -> closed
resolution: accepted
messages: + msg66613
nosy: + georg.brandl
2008-05-11 03:00:48hdiogenessetfiles: + mailbox-remove_deprecated_doc.patch
2008-05-11 02:49:30hdiogenescreate