Robert Bradshaw wrote:
> On Dec 29, 2008, at 4:47 PM, William Stein wrote:
> 
>> On Mon, Dec 29, 2008 at 4:34 PM, Robert Bradshaw
>> <rober...@math.washington.edu> wrote:
>>> +1 to (deprecating then removing) removing X.list(), and replacing it
>>> with X.entries().
>> Very good point.  We *must* remember to make X.list() use the
>> deprecation warning system, and only remove it after 6 months.  Could
>> you make a trac ticket?
> 
> Done. http://trac.sagemath.org/sage_trac/ticket/4889


When I was finishing this, I realized that matrices have a dict() method 
which returns the entries in "sparse" format, as a dictionary.  That 
naturally suggests that m.list() should return the entries as a list.

Should we deprecate the dict() method too?  Instead, we could have 
m.entries() take an optional "sparse" keyword argument, so that 
m.entries(sparse=True) returns a dictionary of the nonzero entries.

Thanks,

Jason


--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to