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

Fix exception declaration in base class, as subclasses in svg.pxd require it. #5390

Closed
wants to merge 2 commits into from

Conversation

scoder
Copy link
Contributor

@scoder scoder commented Sep 21, 2017

This will become an error in Cython 0.27, as it would depend on the type that Cython thinks it is calling (base or subtype) whether exceptions will be handled by the caller or not.

…uire it.

This will become an error in Cython 0.27, as it would depend on the type that Cython thinks it is calling (base or subtype) whether exceptions will be handled by the caller or not.
@scoder
Copy link
Contributor Author

scoder commented Sep 21, 2017

Looks like further changes in other .pxd files are also needed (fbo.pxd, maybe others). Basically, if you want to raise exceptions from a method in a subtype, then the base type (and all its subtypes) must allow that.

@KeyWeeUsr
Copy link
Contributor

The current change throws an error during compilation unfortunately(as you've mentioned), so I can't merge it in its current state, but afaik, this change is harmless (ref #5220) except that it required switching to higher version of Cython.

If you're willing, please make similar changes to the files Travis build complains about, so that it can be merged. Thanks :)

@KeyWeeUsr KeyWeeUsr added the Priority: High Should be fixed ASAP label Sep 23, 2017
@scoder
Copy link
Contributor Author

scoder commented Sep 26, 2017

Closing in favour of #5406.

@scoder scoder closed this Sep 26, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority: High Should be fixed ASAP
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants