#5769: power series are accidentally *mutable* (really dangerous)
------------------------------+---------------------------------------------
 Reporter:  was               |       Owner:  somebody  
     Type:  defect            |      Status:  new       
 Priority:  major             |   Milestone:  sage-3.4.2
Component:  basic arithmetic  |    Keywords:            
------------------------------+---------------------------------------------
 {{{
 wst...@sage:~/build/sage-3.4.1.rc2$ ./sage
 ----------------------------------------------------------------------
 | Sage Version 3.4.1.rc2, Release Date: 2009-04-10                   |
 | Type notebook() for the GUI, and license() for information.        |
 ----------------------------------------------------------------------
 Loading Sage library. Current Mercurial branch is: ref2
 sage: R.<t> = ZZ[[]]
 sage: f = 1 + 17*t - 4*t^3 + O(t^5)
 sage: f[1] = 10
 ...
 IndexError: power series are immutable
 }}}
 Except they are mutable:
 {{{
 sage: f *= 2
 sage: f
 2 + 34*t - 8*t^3 + O(t^5)
 }}}
 But they shouldn't be!  The _imul_ method needs to be deleted.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/5769>
Sage <http://sagemath.org/>
Sage - Open Source Mathematical Software: Building the Car Instead of 
Reinventing the Wheel

--~--~---------~--~----~------------~-------~--~----~
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