id summary reporter owner description type status priority milestone component resolution keywords cc merged author reviewer upstream work_issues branch commit dependencies stopgaps
22605 Better error handling of the polyhedron constructor for non-embedded NumberField and floats. jipilab "These error messages are not really informative of what the problem really is:
{{{
sage: K = NumberField(x^2-2,'s')
sage: s = K.0
sage: L = NumberField(x^3-2,'t')
sage: t = L.0
sage: P = Polyhedron(vertices = [[0,s],[t,0]])
Traceback (most recent call last):
...
AttributeError: 'Objects_with_category' object has no attribute 'is_exact'
}}}
similar problem with `floats`:
{{{
sage: f = float(1.1)
sage: f
1.1
sage: Polyhedron(vertices=[[f]])
Traceback (most recent call last):
...
AttributeError: type object 'float' has no attribute 'is_exact'
}}}
The constructor could try to detect the problem and return an informative message.
Once this is fixed, ticket #22552 is a follow-up ticket that should be fixed easily from the present resolution." defect closed major sage-8.1 geometry fixed polyhedron, base ring moritz mkoeppe vdelecroix novoselt tmonteil tscrim Jean-Philippe Labbé, Vincent Delecroix, Marcelo Forets Vincent Delecroix N/A af03de82ed07686322db70895a0ab34973888981 af03de82ed07686322db70895a0ab34973888981 #23345