Opened 5 years ago

Closed 5 years ago

#23390 closed enhancement (fixed)

Show method of semidefinite programming does no carriage return

Reported by: Marcelo Forets Owned by:
Priority: major Milestone: sage-8.0
Component: numerical Keywords: semidefinite programming, user interface
Cc: Merged in:
Authors: Marcelo Forets Reviewers: Jeroen Demeyer
Report Upstream: N/A Work issues:
Branch: 1e94160 (Commits, GitHub, GitLab) Commit: 1e94160123c8ab6b569ab528292eab61cab339c8
Dependencies: Stopgaps:

Status badges

Description

the example

sage: p = SemidefiniteProgram()
sage: x = p.new_variable(name="hihi")
sage: a1 = matrix([[1,2],[2,3]])
sage: a2 = matrix([[2,3],[3,4]])
sage: a3 = matrix([[3,4],[4,5]])
sage: p.set_objective(x[0] - x[1])
sage: p.add_constraint(a1*x[0]+a2*x[1]<= a3)
sage: p.show()

leaves the sage: prompt in the same line:

...
Variables:

   hihi[0],  hihi[1] sage:

removing the keyword end=" " from the last call to print, makes the sage: prompt to display properly.

Change History (5)

comment:1 Changed 5 years ago by Marcelo Forets

Authors: Marcelo Forets
Branch: u/mforets/23390
Commit: 1e94160123c8ab6b569ab528292eab61cab339c8

New commits:

1e94160remove end keyword

comment:2 Changed 5 years ago by Marcelo Forets

Status: newneeds_review

comment:3 Changed 5 years ago by Jeroen Demeyer

Reviewers: Jeroen Demeyer
Status: needs_reviewpositive_review

comment:4 Changed 5 years ago by Marcelo Forets

thanks

comment:5 Changed 5 years ago by Volker Braun

Branch: u/mforets/233901e94160123c8ab6b569ab528292eab61cab339c8
Resolution: fixed
Status: positive_reviewclosed
Note: See TracTickets for help on using tickets.