You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Python, calls to setattr() or some_list.sort() return None. When optimised in Cython, they return 0 on success or -1 on error instead. The 0 return value is visible to user code.
Plus, Cython currently fails to handle the return value in some cases, so using the return value as Python object can crash as the value may not even get coerced.
This was found in a CPython unit test which tests the return value.
In Python, some_list.sort() returns None. When optimised in Cython, it returns 0 on success or -1 on error instead.
Plus, Cython currently fails completely to handle the return value, so using the return value as Python object crashes as the value does not even get coerced.
This was found in a CPython unit test which tests the return value.
to
In Python, calls to setattr() or some_list.sort() return None. When optimised in Cython, they return 0 on success or -1 on error instead. The 0 return value is visible to user code.
Plus, Cython currently fails to handle the return value in some cases, so using the return value as Python object can crash as the value may not even get coerced.
This was found in a CPython unit test which tests the return value. summary from
incorrect return values of optimised builtin methods like list.sort()
to
incorrect return values of optimised builtin functions/methods
commented
In Python, calls to
setattr()
orsome_list.sort()
returnNone
. When optimised in Cython, they return0
on success or-1
on error instead. The0
return value is visible to user code.Plus, Cython currently fails to handle the return value in some cases, so using the return value as Python object can crash as the value may not even get coerced.
This was found in a CPython unit test which tests the return value.
Migrated from http://trac.cython.org/ticket/688
The text was updated successfully, but these errors were encountered: