-
-
Notifications
You must be signed in to change notification settings - Fork 526
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
py3 making __nonzero__ an alias for __bool__ in rings folder #21887
Comments
New commits:
|
Commit: |
Branch: u/chapoton/21887 |
comment:2
This is not needed for Cython extension types. Cython understands both special methods There is one potential caveat: if you really need |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:4
So should I refrain to make changes to any pyx or pxi files ? I would prefer to have something uniform, even if it is not necessary. Does it do any harm to do that also in pyx files ? |
comment:5
Replying to @fchapoton:
There is no obvious harm, apart from code bloat. |
comment:6
OK, I actually tested it and it doesn't work...
I guess Cython extension types don't allow such assignment of special methods. |
comment:7
To fix code like |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:9
|
Branch pushed to git repo; I updated commit sha1. New commits:
|
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:12
ok, works now, green bot, setting to needs_review |
Reviewer: Jeroen Demeyer |
Changed branch from u/chapoton/21887 to |
as a step to py3
part of #16076
here only in the rings folder
Component: python3
Author: Frédéric Chapoton
Branch/Commit:
b279834
Reviewer: Jeroen Demeyer
Issue created by migration from https://trac.sagemath.org/ticket/21887
The text was updated successfully, but these errors were encountered: