-
-
Notifications
You must be signed in to change notification settings - Fork 553
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
make a category of Dedekind domains, remove code from ring.pyx #37234
Conversation
maybe one should make ZZ belong to this category ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One tiny thing (it should be fixed more broadly though). However, I think it is a good thing to refine the category of ZZ
and remove duplicate methods (these should never be a critical part of any algorithm IMO, so downgrading Cython -> Python shouldn't have any real effect...I hope).
It seems that ZZ prefers to inherit |
a real can of worms. One would like to make ZZ based on Parent, but this is not simple at all. I would rather undo the removal of these two methods in ZZ for the moment, if you agree. |
37c4e9f
to
c85a268
Compare
Ah, right, categories have the lowest precedence. Yes, we can revert removing them. It was just trying to avoid some redundancies. |
c24281c
to
8469f2c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you.
One last thing, but unfortunately it is somewhat annoying. We have an import of DedekindDomain
in rings/all.py
, which makes its way into the global namespace. So we need to properly formally deprecate the class. sigh
ok, right. Annoying it was. Because this was informally deprecated for a long time, I have just put a minimal replacement in place. I have also (in the same commit) replaced all general imports of |
Documentation preview for this PR (built with commit 7b3bb5b; changes) is ready! 🎉 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you. Once the bot shows tests pass, you can set a positive review.
sagemathgh-37234: make a category of Dedekind domains, remove code from ring.pyx This is creating a `DedekindDomains` category and moving the associated code from `ring.pyx` to the category. ### 📝 Checklist - [x] The title is concise, informative, and self-explanatory. - [x] The description explains in detail what this PR is about. - [ ] I have linked a relevant issue or discussion. - [ ] I have created tests covering the changes. - [x] I have updated the documentation accordingly. URL: sagemath#37234 Reported by: Frédéric Chapoton Reviewer(s): Travis Scrimshaw
This is creating a
DedekindDomains
category and moving the associated code fromring.pyx
to the category.📝 Checklist