#5232: [with patch; positive review] interact -- major bug in interact ranges 
due
to str versus repr
----------------------------+------------------------
       Reporter:  was       |        Owner:  itolkov
           Type:  defect    |       Status:  closed
       Priority:  critical  |    Milestone:  sage-3.3
      Component:  interact  |   Resolution:  fixed
       Keywords:            |    Merged in:
        Authors:            |    Reviewers:
Report Upstream:  N/A       |  Work issues:
         Branch:            |       Commit:
   Dependencies:            |     Stopgaps:
----------------------------+------------------------
Changes (by chapoton):

 * upstream:   => N/A


Old description:

> This is related a little to #5220, but tangentially.
>
> In sage-3.3.alphpha5 the following is now COMPLETELY BROKEN:
> {{{
> @interact
> def f(s=(0,pi,1)):
>     print s
> }}}
>
> Basically anything involving symbolics in ranges is broken. If you try
> this in the console you'll see the reason:
>
> {{{
> sage: @interact
> ....: def f(s=(0,pi,1)):
> ....:         print s
> ....:
> <html><!--notruncate--><div padding=6 id='div-interact-0'> <table
> width=800px height=20px bgcolor='#c5c5c5'
>                  cellpadding=15><tr><td bgcolor='#f9f9f9' valign=top
> align=left><table><tr><td align=right><font
> color="black">s&nbsp;</font></td><td><table><tr><td>
>         <div id='slider-s-0' class='ui-slider ui-slider-3'
> style='margin:0px;'><span class='ui-slider-handle'></span></div>
>         </td><td><font color='black'
> id='slider-s-0-lbl'></font></td></tr></table><script>(function(){ var
> values = ["
>                                        0","
>                                        1","
>                                        2","
>                                        3","pi"]; setTimeout(function() {
> }}}
>
> Notice that the range values -- 0, 1, 2,3, etc., are symbolic and printed
> via ascii art. This is thus a similar problem.  It is I think a massive
> bug -- it causes mysterious hangs in numerous natural situations.

New description:

 This is related a little to #5220, but tangentially.

 In sage-3.3.alphpha5 the following is now COMPLETELY BROKEN:
 {{{
 @interact
 def f(s=(0,pi,1)):
     print s
 }}}

 Basically anything involving symbolics in ranges is broken. If you try
 this in the console you'll see the reason:

 {{{
 sage: @interact
 ....: def f(s=(0,pi,1)):
 ....:         print s
 ....:
 <html><!--notruncate--><div padding=6 id='div-interact-0'> <table
 width=800px height=20px bgcolor='#c5c5c5'
                  cellpadding=15><tr><td bgcolor='#f9f9f9' valign=top
 align=left><table><tr><td align=right><font
 color="black">s&nbsp;</font></td><td><table><tr><td>
     <div id='slider-s-0' class='ui-slider ui-slider-3'
 style='margin:0px;'><span class='ui-slider-handle'></span></div>
     </td><td><font color='black'
 id='slider-s-0-lbl'></font></td></tr></table><script>(function(){ var
 values = ["
                                        0","
                                        1","
                                        2","
                                        3","pi"]; setTimeout(function() {
 }}}

 Notice that the range values -- 0, 1, 2,3, etc., are symbolic and printed
 via ascii art. This is thus a similar problem.  It is I think a massive
 bug -- it causes mysterious hangs in numerous natural situations.

--

--
Ticket URL: <http://trac.sagemath.org/ticket/5232#comment:4>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.

Reply via email to