Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Trac #33666: Mutable polyhedron (ppl) saves incorrect Vrepresentation
{{{ sage: P = polytopes.cube() sage: Q = 1/2*P sage: parent = P.parent() sage: R = parent._element_constructor_(Q, mutable=True) sage: R /home/jonathan/Applications/sage/local/lib/python3.8/site- packages/sage/repl/rich_output/display_manager.py:608: RichReprWarning: Exception in _rich_repr_ while displaying object: no conversion of this rational to integer warnings.warn( The empty polyhedron in ZZ^3 sage: R.Hrepresentation() (An inequality (0, 0, -2) x + 1 >= 0, An inequality (0, -2, 0) x + 1 >= 0, An inequality (-2, 0, 0) x + 1 >= 0, An inequality (2, 0, 0) x + 1 >= 0, An inequality (0, 0, 2) x + 1 >= 0, An inequality (0, 2, 0) x + 1 >= 0) sage: R.Vrepresentation() [] }}} While obtaining the Vrepresentation from the backend, a `TypeError` is not handled properly. We end up with a broken object, which isn't communicated well to the user. URL: https://trac.sagemath.org/33666 Reported by: gh-kliem Ticket author(s): Jonathan Kliem Reviewer(s): Matthias Koeppe
- Loading branch information