Skip to content

Conversation

user202729
Copy link
Contributor

@user202729 user202729 commented Oct 1, 2025

PolynomialRing(ZZ, 1, name=("x",)) is an error, so it should make sense to deprecate passing a list/tuple as name.

Triggered by #40947.

On the other hand, it is explicitly legal (see normalize_names) to say PolynomialRing(ZZ, 2, names="x,y") (split by comma), so deprecating passing a string as names is probably not a good idea (for consistency).

📝 Checklist

  • The title is concise and informative.
  • 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.
  • I have updated the documentation and checked the documentation preview.

⌛ Dependencies

#40947

sage: GF(7^2, name='aa')
Finite Field in aa of size 7^2
sage: GF(7, name=('aa',))
Finite Field of size 7
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this ought to fail (warn), but it doesn't. Why?

Copy link

github-actions bot commented Oct 1, 2025

Documentation preview for this PR (built with commit 7b59ba9; changes) is ready! 🎉
This preview will update shortly after each push to this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant