Skip to content

Conversation

@orlitzky
Copy link
Contributor

When the (optional) sage.rings.polynomial.pbori.pbori fails to import, one of the cases in the Sequence() constructor is skipped, leading to certain polynomial sequences being returned as generic sequences instead of polynomial ones. In one egregious case, this causes a multivariate polynomial sequence with 324 elements to be printed to the screen rather than the short description that is intended:

File "...multi_polynomial_libsingular.pyx", line 4790...
Failed example:
    f.lift(I)
Expected:
    Polynomial Sequence with 324 Polynomials in 2 Variables
Got:
    [0,
     0,
     0,
     0,
     0, ...

We fix this by handling the (failure of the) pbori import separately, keeping the rest of the special case for polynomial sequences.

When the (optional) sage.rings.polynomial.pbori.pbori fails to import,
one of the cases in the Sequence() constructor is skipped, leading to
certain polynomial sequences being returned as generic sequences
instead of polynomial ones. In one egregious case, this causes a
multivariate polynomial sequence with 324 elements to be printed to
the screen rather than the short description that is intended:

  File "...multi_polynomial_libsingular.pyx", line 4790...
  Failed example:
      f.lift(I)
  Expected:
      Polynomial Sequence with 324 Polynomials in 2 Variables
  Got:
      [0,
       0,
       0,
       0,
       0, ...

We fix this by handling the (failure of the) pbori import separately,
keeping the rest of the special case for polynomial sequences.
@orlitzky
Copy link
Contributor Author

Can be reproduced/tested by passing -Dbrial=disabled to meson setup.

@github-actions
Copy link

Documentation preview for this PR (built with commit 752e705; 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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant