Open
Description
Some C API functions can return a value which may or may not indicate an error, and require disambiguation with PyErr_Occurred(). They should be replaced by new versions with unambiguous return values.
Ambiguous return values
PyCapsule_GetDestructor
PyCapsule_GetContext
PyCapsule_GetName
PyDict_GetItemWithError
PyFloat_AsDouble
PyFloat_Unpack2
PyFloat_Unpack4
PyFloat_Unpack8
PyIter_Next
PyLong_AsLong
PyLong_AsLongAndOverflow
PyLong_AsLongLong
PyLong_AsLongLongAndOverflow
PyLong_AsSsize_t
PyLong_AsUnsignedLong
PyLong_AsSize_t
PyLong_AsUnsignedLongLong
PyLong_AsUnsignedLongMask
PyLong_AsDouble
PyLong_AsVoidPtr
PyMarshal_ReadLongFromFile
PyMarshal_ReadShortFromFile
PyNumber_AsSsize_t
PyUnicode_Compare
no return value, but can set an exception that can only be checked with PyErr_Occurred:
PyMarshal_WriteObjectToFile