Ticket #2386 (closed defect: duplicate)

Opened 5 years ago

Last modified 5 years ago

copy and pasting matrices doesn't work

Reported by: jason Owned by: mabshoff
Priority: major Milestone:
Component: porting: Cygwin Keywords:
Cc: Work issues:
Report Upstream: Reviewers:
Authors: Merged in:
Dependencies: Stopgaps:

Description

We should be able to somehow get a printout of a matrix that is suitable for pasting into an input cell.

I think that is what repr is supposed to do. Currently, repr is the same as str, which seems like a bug considering the python convention.

Change History

comment:1 Changed 5 years ago by was

I think that is what repr is supposed to do. Currently, repr is the same as str, which seems like a bug considering the python convention.

SAGE blatantly and *systematically* does not follow that Python convention.

I am happy if we implement systematically a method _input_form_ (say -- after Mathematica's well chosen named InputForm?) for objects which returns -- if possible (sometimes it isn't!) -- an expression that sage_evals to that object.

Discuss!

comment:2 Changed 5 years ago by jason

  • Status changed from new to closed
  • Resolution set to duplicate

This would be part of #2387.

Note: See TracTickets for help on using tickets.