错误代码门户
PythonPython错误代码

PythonFinalizationError

PythonFinalizationError

代码 PythonFinalizationError · Python 报告的问题。

该异常源自 RuntimeError。当解释器关闭期间操作被阻止(也称为 Python 终结)时,会引发该错误。 在 Python 终结过程中可以使用 PythonFinalizationError 阻止的操作示例: 另请参见 sys.is_finalizing() 函数。

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

This exception is derived from RuntimeError. It is raised when an operation is blocked during interpreter shutdown also known as Python finalization. Examples of operations which can be blocked with a PythonFinalizationError during the Python finalization: See also the sys.is_finalizing() function.

故障排除与诊断链接

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