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

Cythonization support #137

Merged
merged 1 commit into from Dec 18, 2021
Merged

Cythonization support #137

merged 1 commit into from Dec 18, 2021

Conversation

borishim
Copy link
Contributor

Hi Mike,

decorator-decorated methods can't be cythonized because cyfunctions are evaluated to False with inspect.isfunction(). However, necessary inspection elements for decorator-decoration can be carried out okay as long as inspect.isroutine() is evaluated to True.
So I would like to suggest to replace the test in the FunctionMaker to use inspect.isroutine(). I tested cythonizing a fairly complex proprietary ipython magic class, and it works well.

@tobiasdiez
Copy link

@micheles Could you please merge this PR? Would be awesome! Thanks

@micheles
Copy link
Owner

Yes, sorry for the delay, I had forgotten about it!

@micheles micheles merged commit 9cf8151 into micheles:master Dec 18, 2021
@tobiasdiez
Copy link

Perfect, thanks a lot @micheles! Do you already have an ETA for a new release that includes this fix?

@micheles
Copy link
Owner

micheles commented Jan 7, 2022

Version 5.1.1 will be released today.

@tobiasdiez
Copy link

Thanks a lot!

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

3 participants