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

Correct typo in class name of Polynomial_ZZ_pEX in .pxd file #36071

Merged
merged 2 commits into from
Aug 27, 2023

Conversation

GiacomoPope
Copy link
Contributor

Currently the cpython definition of within /sage/rings/polynomial/polynomial_zz_pex.pxd exports the class name Polynomial_ZZ_pX instead of Polynomial_ZZ_pEX.

At the moment, if a user requires the Polynomial_ZZ_pEX within a .pyx file, they must perform the following import:

from sage.rings.polynomial.polynomial_zz_pex cimport Polynomial_ZZ_pX as Polynomial_ZZ_pEX

Correcting the typo in the changed file allows the import to be simply

from sage.rings.polynomial.polynomial_zz_pex cimport Polynomial_ZZ_pEX

📝 Checklist

  • The title is concise, informative, and self-explanatory.
  • 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 accordingly.

@GiacomoPope GiacomoPope marked this pull request as ready for review August 11, 2023 06:57
@fchapoton fchapoton self-assigned this Aug 16, 2023
@github-actions
Copy link

Documentation preview for this PR (built with commit f4111dd; changes) is ready! 🎉

Copy link
Contributor

@fchapoton fchapoton left a comment

Choose a reason for hiding this comment

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

ok, reasonable, only place with Polynomial_ZZ_pX in the full codebase

vbraun pushed a commit to vbraun/sage that referenced this pull request Aug 23, 2023
…n `.pxd` file

    
<!-- ^^^^^
Corrects a typo in the cython definition of Polynomial_ZZ_pEX
-->
Currently the cpython definition of within
`/sage/rings/polynomial/polynomial_zz_pex.pxd` exports the class name
`Polynomial_ZZ_pX` instead of `Polynomial_ZZ_pEX`.

At the moment, if a user requires the `Polynomial_ZZ_pEX` within a
`.pyx` file, they must perform the following import:

```
from sage.rings.polynomial.polynomial_zz_pex cimport Polynomial_ZZ_pX as
Polynomial_ZZ_pEX
```

Correcting the typo in the changed file allows the import to be simply

```
from sage.rings.polynomial.polynomial_zz_pex cimport Polynomial_ZZ_pEX
```

### 📝 Checklist

<!-- Put an `x` in all the boxes that apply. -->
<!-- If your change requires a documentation PR, please link it
appropriately -->
<!-- If you're unsure about any of these, don't hesitate to ask. We're
here to help! -->
<!-- Feel free to remove irrelevant items. -->

- [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.
- [ ] I have updated the documentation accordingly.
    
URL: sagemath#36071
Reported by: Giacomo Pope
Reviewer(s): Frédéric Chapoton
@vbraun vbraun merged commit b99418f into sagemath:develop Aug 27, 2023
12 of 13 checks passed
@mkoeppe mkoeppe added this to the sage-10.2 milestone Aug 27, 2023
@GiacomoPope GiacomoPope deleted the NTL-Polynomial-Typo branch March 6, 2024 16:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants