#6977: Implement __len__ to add support for MuPAD objects as Python containers
-------------------------+--------------------------------------------------
Reporter: nthiery | Owner: was
Type: enhancement | Status: new
Priority: major | Milestone: sage-4.1.2
Component: interfaces | Keywords: MuPAD len
Reviewer: | Author: Nicolas M. ThiƩry
Merged: |
-------------------------+--------------------------------------------------
The title says it all; after the patch, one can do:
sage: len(mupad([1,2,3]))
3
sage: map(ZZ, list(mupad([1,2,3])))
[1, 2, 3]
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/6977>
Sage <http://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
-~----------~----~----~----~------~----~------~--~---