-
-
Notifications
You must be signed in to change notification settings - Fork 559
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
Allow python ints in sage.groups.generic.has_order #38980
Conversation
Documentation preview for this PR (built with commit f20bed4; changes) is ready! 🎉 |
This PR causes a doctest failure:
|
The documentation states that the input should be either an integer or in the class |
Not sure if
Though for ZZ instead of QQ I'm not sure if there's any bad side effect. What about |
I think |
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.
Looks great, thanks!
Thanks for the review! |
sagemathgh-38980: Allow python ints in sage.groups.generic.has_order Fixes sagemath#38708. We revise `sage.groups.generic.has_order` to allow the argument `n` to be any integer (including a python `int`), not only a sage integer. ### 📝 Checklist <!-- Put an `x` in all the boxes that apply. --> - [x] The title is concise and informative. - [x] The description explains in detail what this PR is about. - [x] I have linked a relevant issue or discussion. - [x] I have created tests covering the changes. - [x] I have updated the documentation and checked the documentation preview. ### ⌛ Dependencies None. <!-- List all open PRs that this PR logically depends on. For example, --> <!-- - sagemath#12345: short description why this is a dependency --> <!-- - sagemath#34567: ... --> URL: sagemath#38980 Reported by: DaveWitteMorris Reviewer(s): Lorenz Panny
sagemathgh-38980: Allow python ints in sage.groups.generic.has_order Fixes sagemath#38708. We revise `sage.groups.generic.has_order` to allow the argument `n` to be any integer (including a python `int`), not only a sage integer. ### 📝 Checklist <!-- Put an `x` in all the boxes that apply. --> - [x] The title is concise and informative. - [x] The description explains in detail what this PR is about. - [x] I have linked a relevant issue or discussion. - [x] I have created tests covering the changes. - [x] I have updated the documentation and checked the documentation preview. ### ⌛ Dependencies None. <!-- List all open PRs that this PR logically depends on. For example, --> <!-- - sagemath#12345: short description why this is a dependency --> <!-- - sagemath#34567: ... --> URL: sagemath#38980 Reported by: DaveWitteMorris Reviewer(s): Lorenz Panny
Fixes #38708.
We revise
sage.groups.generic.has_order
to allow the argumentn
to be any integer (including a pythonint
), not only a sage integer.📝 Checklist
⌛ Dependencies
None.