Pending removal in Python 3.20
!_PyObject_CallMethodId,!_PyObject_GetAttrIdand!_PyUnicode_FromIdare deprecated since 3.15 and will be removed in 3.20. Instead, usePyUnicode_InternFromString()and cache the result in the module state, then callPyObject_CallMethodorPyObject_GetAttr. (Contributed by Victor Stinner in141049.)- The
cvalfield inPyComplexObject(128813). UsePyComplex_AsCComplexandPyComplex_FromCComplexto convert a Python complex number to/from the CPy_complexrepresentation. - Macros
!Py_MATH_PIland!Py_MATH_El.
这篇文档对你有帮助吗?
谢谢你的反馈!