gap: use GAP_IN from kernel API#35861
Conversation
47dfe0b to
a538a16
Compare
|
I am not sure if the finally is ever visited. Better assign the result to some variable and return this afterwards ? |
Isn't that a core part of the Python semantics? Or are you suggesting cython might violate the usual Python semantics there? |
|
Also note that other places in the code use |
So there is a segfault, seemingly on the |
|
Oh no, wait, of course facepalm the |
your are right: https://docs.python.org/fr/3/reference/compound_stmts.html#finally-clause |
|
Documentation preview for this PR (built with commit 0096442; changes) is ready! 🎉 |
... to implement `__contains__`. I am basing this on the code for `_compare_equal` which wraps `GAP_EQ`. Its use of `sig_on` etc. differs considerably from e.g. `_mul_` which wraps `GAP_PROD`. I don't know if this has any significance, and which.
|
@fingolfin : I have fixed things and it now works. Do you think it looks good ? |
|
I couldn't say, I don't know enough about the Sage side. The bits I understand seems fine. If it works, it works... |
|
ok, thanks. So let's run the CI once again and then I will set to positive |
sagemathgh-35861: gap: use GAP_IN from kernel API ... to implement `__contains__`. I am basing this on the code for `_compare_equal` which wraps `GAP_EQ`. Its use of `sig_on` etc. differs considerably from e.g. `_mul_` which wraps `GAP_PROD`. I don't know if this has any significance, and which. <s>Contains PR sagemath#35761, once that is merged I'll rebase here.</s> DONE URL: sagemath#35861 Reported by: Max Horn Reviewer(s): Max Horn
sagemathgh-35861: gap: use GAP_IN from kernel API ... to implement `__contains__`. I am basing this on the code for `_compare_equal` which wraps `GAP_EQ`. Its use of `sig_on` etc. differs considerably from e.g. `_mul_` which wraps `GAP_PROD`. I don't know if this has any significance, and which. <s>Contains PR sagemath#35761, once that is merged I'll rebase here.</s> DONE URL: sagemath#35861 Reported by: Max Horn Reviewer(s): Max Horn
... to implement
__contains__.I am basing this on the code for
_compare_equalwhich wrapsGAP_EQ. Its use ofsig_onetc. differs considerably from e.g._mul_which wrapsGAP_PROD. I don't know if this has any significance, and which.Contains PR #35761, once that is merged I'll rebase here.DONE