Skip to content

Commit

Permalink
use _polymake_init_ for quadratic fields
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Kliem committed May 27, 2021
1 parent 543d211 commit c0eb507
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/sage/interfaces/polymake.py
Original file line number Diff line number Diff line change
Expand Up @@ -354,10 +354,7 @@ def to_str(x):
pass

if is_QuadraticField(parent):
c = x._coefficients() + [0,0]
gen = parent.gen()
r = 'new QuadraticExtension({}, {}, {})'.format(c[0], c[1], gen*gen)
return r
return x._polymake_init_()
try:
if x.parent().is_exact():
# No other exact rings are supported.
Expand Down

0 comments on commit c0eb507

Please sign in to comment.