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

Do not apply decorators twice #1724

Merged
merged 1 commit into from Jun 25, 2017
Merged

Conversation

jdemeyer
Copy link
Contributor

@jdemeyer jdemeyer commented Jun 2, 2017

When calling chain_decorators(node, ...), set node.decorators = None to avoid calling the decorators twice.

This fixes #1679

@scoder
Copy link
Contributor

scoder commented Jun 25, 2017

I'm not entirely sure that this is going to be the final fix in the light of #1434, but that issue is probably non-trivial and this solves the problem at hand. Thanks!

@scoder scoder merged commit 84c37f4 into cython:master Jun 25, 2017
@jdemeyer
Copy link
Contributor Author

I'm not entirely sure that this is going to be the final fix in the light of #1434

There are certainly more bugs related to decorators. In general, the Cython code to deal with decorators is quite complex. It would certainly be a good idea to rethink/refactor decorators in general.

But this PR does fix one specific (and serious) issue. Thanks for merging.

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.

Decorators applied twice when binding=True
2 participants