错误代码门户
PythonPython警告或状态代码

DeprecationWarning

DeprecationWarning

代码 DeprecationWarning · Python 报告的问题。

此条目包含不属于错误的警告或状态值。请查阅原文,确认其返回条件。

有关已弃用功能的警告的基类(当这些警告适用于其他 Python 开发人员时)。 被默认警告过滤器忽略,__main__ 模块中除外 (PEP 565)。启用 Python 开发模式会显示此警告。 PEP 387 中描述了弃用政策。

Google Translate · 此内容为自动翻译。技术术语及适用条件请以英文原文为准。

Base class for warnings about deprecated features when those warnings are intended for other Python developers. Ignored by the default warning filters, except in the __main__ module (PEP 565). Enabling the Python Development Mode shows this warning. The deprecation policy is described in PEP 387.

故障排除与诊断链接

请先确认文档中的产品、版本及发生环境与当前情况一致。