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

error: 'Generator[FastqRecord]' object has no attribute '__to_py__' #626

Open
panxiaoguang opened this issue Feb 7, 2025 · 1 comment
Open

Comments

@panxiaoguang
Copy link

A function that returns a generator can not be written into a python extension

@panxiaoguang
Copy link
Author

Hi,Everything is ok when I compile codon codes into a binary program if a function that returns a generator is in codes. However, it raises an error if I try to compile the same codes into a Python extension.

It's good to have a 'to_py' method in the Codon native generator!

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

No branches or pull requests

1 participant