Opened 11 years ago

Closed 11 years ago

#7410 closed defect (duplicate)

Strings sometimes truncated in notebook mode.

Reported by: AJonsson Owned by: boothby
Priority: major Milestone: sage-duplicate/invalid/wontfix
Component: notebook Keywords:
Cc: Merged in:
Authors: Reviewers:
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Status badges

Description

Noticed that some strings are truncated when viewed by print. Example:

G=graphs.Grid2dGraph(2,9)
S=G.graph6_string()
print S
print G.graph6_string()

We expect this to print the same string two times, but when this code is evaluated in the notebook, this is what is printed:

QhCGGC@_A?c@C@A?__GC@?OC?_G
QhCGGC@_A?c@C@A?__GC@?OC?

The former is the correct answer, the latter removes the last two characters for some reason.

This only happens in the notebook(tested on alpha.sagenb.org for Ubuntu, Debian and Windows XP, with browsers Firefox and IE). When the code above is run in the terminal without a notebook, it works as expected. Running './sage -notebook' also displays the error. This is all tested with Sage 4.2.

Change History (5)

comment:1 Changed 11 years ago by mpatel

  • Report Upstream set to N/A

This may be fixed by #7666.

comment:2 Changed 11 years ago by mpatel

Possibly related: #7663.

comment:3 Changed 11 years ago by mpatel

  • Work issues set to Close with #7648

#7648's patch (alone!) gives the correct answer. If I'm right, please close this ticket when #7648 and #7663 merge.

comment:4 Changed 11 years ago by mpatel

  • Work issues changed from Close with #7648 to Close with #7648, #7663

#7648's patch (alone!?) gives the correct answer. If I'm right, please close this ticket when #7648 and #7663 merge.

comment:5 Changed 11 years ago by timdumol

  • Milestone changed from sage-4.3.1 to sage-duplicate/invalid/wontfix
  • Resolution set to duplicate
  • Status changed from new to closed
  • Work issues Close with #7648, #7663 deleted

Works with sagenb-0.6.

Note: See TracTickets for help on using tickets.