Skip to content

Conversation

@xcaruso
Copy link
Contributor

@xcaruso xcaruso commented Aug 26, 2025

When a skew polynomial ring is created with a trivial twisting morphism (with option polcast=False), the attribute _morphism is set to None, which makes several methods produce an error.
This PR fixes this bug.

📝 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.

@github-actions
Copy link

github-actions bot commented Aug 26, 2025

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

@kryzar kryzar mentioned this pull request Aug 27, 2025
5 tasks
@kryzar
Copy link
Contributor

kryzar commented Sep 4, 2025

I've searched for skew_ in the logs and no failure seems to be related to it. However, is it normal that the build-doc and build-doc-pdf are pending?

@xcaruso
Copy link
Contributor Author

xcaruso commented Sep 5, 2025

I don't know but it is similar in many (all?) PR. So, I think we do have to care about this.

vbraun pushed a commit to vbraun/sage that referenced this pull request Sep 7, 2025
sagemathgh-40697: Fix bug in SkewPolynomialRing when twisting morphism is trivial
    
When a skew polynomial ring is created with a trivial twisting morphism
(with option `polcast=False`), the attribute `_morphism` is set to
`None`, which makes several methods produce an error.
This PR fixes this bug.

### 📝 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.
- [ ] 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.
    
URL: sagemath#40697
Reported by: Xavier Caruso
Reviewer(s): Antoine Leudière, Xavier Caruso
vbraun pushed a commit to vbraun/sage that referenced this pull request Sep 11, 2025
sagemathgh-40697: Fix bug in SkewPolynomialRing when twisting morphism is trivial
    
When a skew polynomial ring is created with a trivial twisting morphism
(with option `polcast=False`), the attribute `_morphism` is set to
`None`, which makes several methods produce an error.
This PR fixes this bug.

### 📝 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.
- [ ] 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.
    
URL: sagemath#40697
Reported by: Xavier Caruso
Reviewer(s): Antoine Leudière, Xavier Caruso
@xcaruso
Copy link
Contributor Author

xcaruso commented Sep 12, 2025

I don't understand if this PR is planned to be merged or not but, in any case, I give back the positive review.

vbraun pushed a commit to vbraun/sage that referenced this pull request Sep 16, 2025
sagemathgh-40697: Fix bug in SkewPolynomialRing when twisting morphism is trivial
    
When a skew polynomial ring is created with a trivial twisting morphism
(with option `polcast=False`), the attribute `_morphism` is set to
`None`, which makes several methods produce an error.
This PR fixes this bug.

### 📝 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.
- [ ] 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.
    
URL: sagemath#40697
Reported by: Xavier Caruso
Reviewer(s): Antoine Leudière, Xavier Caruso
@vbraun vbraun merged commit 57aa4b5 into sagemath:develop Sep 21, 2025
22 of 24 checks passed
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.

3 participants