#9183: creating an expect element can modify a previously created expect element
--------------------------+-------------------------------------------------
   Reporter:  saliola     |       Owner:  was       
       Type:  defect      |      Status:  new       
   Priority:  major       |   Milestone:  sage-4.4.4
  Component:  interfaces  |    Keywords:  gap       
     Author:              |    Upstream:  N/A       
   Reviewer:              |      Merged:            
Work_issues:              |  
--------------------------+-------------------------------------------------
 The {{{_next_variable_name}}} method in the expect interface sometimes
 spits out a variable name that is in use. This means that a previously
 created element might be modified inadvertently:
 {{{
 sage: z = gap(3); z
 3
 sage: gap.clear(z.name())
 sage: gap.clear(z.name())
 sage: x = gap(3); x
 3
 sage: y = gap(4); y
 4
 sage: x
 4
 }}}
 Of course, x should be 3 above, and not 4.

 (This issue was found in #8380, but it didn't get resolved there. See the
 ticket for more details.)

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/9183>
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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en.

Reply via email to