2000-10-04 18:40:30 -04:00
|
|
|
PEP: 4
|
|
|
|
Title: Deprecation of Standard Modules
|
|
|
|
Version: $Revision$
|
2006-03-23 15:13:19 -05:00
|
|
|
Last-Modified: $Date$
|
2015-10-16 13:43:17 -04:00
|
|
|
Author: Brett Cannon <brett@python.org>, Martin von Löwis <martin@v.loewis.de>
|
2000-10-04 18:40:30 -04:00
|
|
|
Status: Active
|
2007-06-19 00:52:34 -04:00
|
|
|
Type: Process
|
2013-10-12 12:11:53 -04:00
|
|
|
Content-Type: text/x-rst
|
2021-02-09 11:54:26 -05:00
|
|
|
Created: 01-Oct-2000
|
2007-06-19 00:20:07 -04:00
|
|
|
Post-History:
|
2000-10-04 18:40:30 -04:00
|
|
|
|
2013-10-12 12:11:53 -04:00
|
|
|
|
2000-10-04 18:40:30 -04:00
|
|
|
Introduction
|
2013-10-12 12:11:53 -04:00
|
|
|
============
|
2000-10-04 18:40:30 -04:00
|
|
|
|
2013-10-12 12:11:53 -04:00
|
|
|
When new modules were added to the standard Python library in the
|
|
|
|
past, it was not possible to foresee whether they would still be
|
|
|
|
useful in the future. Even though Python "Comes With Batteries
|
|
|
|
Included", batteries may discharge over time. Carrying old modules
|
|
|
|
around is a burden on the maintainer, especially when there is no
|
|
|
|
interest in the module anymore.
|
2000-10-04 18:40:30 -04:00
|
|
|
|
2013-10-12 12:11:53 -04:00
|
|
|
At the same time, removing a module from the distribution is
|
|
|
|
difficult, as it is not known in general whether anybody is still
|
|
|
|
using it. This PEP defines a procedure for removing modules from the
|
|
|
|
standard Python library. Usage of a module may be 'deprecated', which
|
2022-09-23 18:56:29 -04:00
|
|
|
means that it may be removed from a future Python release.
|
2000-10-04 18:40:30 -04:00
|
|
|
|
|
|
|
|
|
|
|
Procedure for declaring a module deprecated
|
2013-10-12 12:11:53 -04:00
|
|
|
===========================================
|
2000-10-04 18:40:30 -04:00
|
|
|
|
2022-09-23 18:56:29 -04:00
|
|
|
To remove a top-level module/package from the standard library, a PEP
|
|
|
|
is required. The deprecation process is outlined in :pep:`387`.
|
2000-10-04 18:40:30 -04:00
|
|
|
|
2022-09-23 18:56:29 -04:00
|
|
|
For removing a submodule of a package in the standard library,
|
|
|
|
:pep:`387` must be followed, but a PEP is not required.
|
2013-10-12 12:11:53 -04:00
|
|
|
|
|
|
|
|
|
|
|
Copyright
|
|
|
|
=========
|
2000-10-04 18:40:30 -04:00
|
|
|
|
2013-10-12 12:11:53 -04:00
|
|
|
This document has been placed in the public domain.
|