Skip to content
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

has_order() errors out when the given order has type int #38708

Open
2 tasks done
maxale opened this issue Sep 24, 2024 · 0 comments
Open
2 tasks done

has_order() errors out when the given order has type int #38708

maxale opened this issue Sep 24, 2024 · 0 comments
Labels

Comments

@maxale
Copy link
Contributor

maxale commented Sep 24, 2024

Steps To Reproduce

Example:

from sage.groups.generic import has_order
has_order(Mod(2,3),int(2),operation='*')

Expected Behavior

Should work similarly to has_order(Mod(2,3),ZZ(2),operation='*').

Actual Behavior

It errors out with

TypeError: object of type 'int' has no len()

Additional Information

No response

Environment

  • OS: Ubuntu 24.04.1 LTS
  • Sage Version: 10.5.beta3

Checklist

  • I have searched the existing issues for a bug report that matches the one I want to file, without success.
  • I have read the documentation and troubleshoot guide
@maxale maxale added the t: bug label Sep 24, 2024
@maxale maxale changed the title has_order errors out if given order has type int has_order() errors out when the given order has type int Sep 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant