Re: [sage-devel] Re: List of elements of an object

2011-03-13 Thread Justin C. Walker
On Mar 13, 2011, at 13:09 , daveloeffler wrote: > On Mar 13, 6:34 pm, "Justin C. Walker" wrote: >> Perhaps I should have expected this, but >> >> sage: R=Integers(5) >> sage: L=R.list() >> sage: L >> [0, 1, 2, 3, 4] >> ## I just want the *non-zero* elements: >> sage: L.__delitem__(0) >> sage:

[sage-devel] Re: List of elements of an object

2011-03-13 Thread daveloeffler
On Mar 13, 6:34 pm, "Justin C. Walker" wrote: > Perhaps I should have expected this, but > > sage: R=Integers(5) > sage: L=R.list() > sage: L >  [0, 1, 2, 3, 4] > ## I just want the *non-zero* elements: > sage: L.__delitem__(0) > sage: L >  [1, 2, 3, 4] > ## Ah! > ## Uh-oh > sage: R.list() >  [1,