Following system colour scheme Selected dark colour scheme Selected light colour scheme

Python Enhancement Proposals

PEP 4 – Deprecation of Standard Modules

Author:
Brett Cannon <brett at python.org>, Martin von Löwis <martin at v.loewis.de>
Status:
Active
Type:
Process
Created:
01-Oct-2000
Post-History:


Table of Contents

介绍

过去当新的模块被添加到标准的 Python 库中时,不可能预见到它们在未来是否仍然有用。即使 Python “附带电池”,电池也会随着时间的推移而放电。携带旧模块是维护者的负担,特别是当人们对模块不再感兴趣的时候。

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 means that it may be removed from a future Python release.

宣布一个模块被废弃的程序

To remove a top-level module/package from the standard library, a PEP is required. The deprecation process is outlined in PEP 387.

For removing a submodule of a package in the standard library, PEP 387 must be followed, but a PEP is not required.


Source: https://github.com/python/peps/blob/main/pep-0004.txt

Last modified: 2022-09-23 22:56:29 GMT