• Yury V. Zaytsev's avatar
    Multiple fixes to array.extend() · 7f6ac8a3
    Yury V. Zaytsev authored
        * Fix self / other typecode compatibility check and add test
    
        * In CPython, PyErr_BadArgument() C-API function always raises an
          exception and returns zero
    
        * It is needed to add the `except -2` clause, so that the exception
          raised by PyErr_BadArgument() is not ignored
    
        * Additionaly, the `return -1` statement in array.extend() will have
          no effect, and hence is misleading, so it needs to be removed
    Signed-off-by: default avatarYury V. Zaytsev <yury@shurup.com>
    7f6ac8a3
pyarray.pyx 3.94 KB