Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple fixes to array.extend() #258

Merged
merged 1 commit into from Oct 12, 2013
Merged

Conversation

zyv
Copy link
Contributor

@zyv zyv commented Oct 8, 2013

* 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: Yury V. Zaytsev yury@shurup.com

    * 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: Yury V. Zaytsev <yury@shurup.com>
@scoder
Copy link
Contributor

scoder commented Oct 12, 2013

Thanks!

scoder added a commit that referenced this pull request Oct 12, 2013
Multiple fixes to array.extend()
@scoder scoder merged commit 2f575a6 into cython:master Oct 12, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants