-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Segmentation fault with custom TypeTraverserVisitor #8360
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
Comments
Could you try to produce a standalone test case for me to run somehow? |
This prevents a bunch of segfaults Closes #9001. Closes #8360. It doesn't close either of them in a satisfactory way, though. Really they would like actual support, which I've opened as mypyc/mypyc#754. Related to mypyc/mypyc#655. (At some point there used to be working dynamic checks for at least one of these cases. Not sure when that broke.)
There are two issues here: that we don't support what this code does, and that it segfaults. I've opened mypyc/mypyc#754 for the former and submitted #9248 for the latter. The specific problem is that we don't support subclassing compiled traits from interpreted code. We could create a concrete subclass of TypeTraverserVisitor in complied code, though, and you could subclass that? |
This prevents a bunch of segfaults. Closes #9001. Closes #8360. It doesn't close either of them in a satisfactory way, though. Really they would like actual support, which I've opened as mypyc/mypyc#754. Related to mypyc/mypyc#655. (At some point there used to be working dynamic checks for at least one of these cases. Not sure when that broke.)
I'm trying to copy methods from one class into the other, need to add some imports to other class' module.
https://github.com/django/django/blob/b9cf764be62e77b4777b3a75ec256f6209a57671/django/db/models/manager.py#L101
I'd like to use custom
TypeTraverserVisitor
for thatCompiled version of mypy segfaults for me, when I'm trying to use code like this. The plain Python version runs just fine.
The text was updated successfully, but these errors were encountered: