#13072: Implementation of PartitionTuple + some minor fixes to partition.py
----------------------------------------+-----------------------------------
       Reporter:  andrew.mathas         |         Owner:  Andrew Mathas   
           Type:  enhancement           |        Status:  needs_review    
       Priority:  major                 |     Milestone:  sage-5.3        
      Component:  combinatorics         |    Resolution:                  
       Keywords:  tuples of partitions  |   Work issues:                  
Report Upstream:  N/A                   |     Reviewers:  Travis Scrimshaw
        Authors:  Andrew Mathas         |     Merged in:                  
   Dependencies:  #9265                 |      Stopgaps:                  
----------------------------------------+-----------------------------------

Comment (by jhpalmieri):

 Regarding `RestrictedPartitions`: see #12278. Should it be deprecated at
 all? In particular, what's the replacement for something like
 `RestrictedPartitions(5,[3,2,1], 3)`? The best I can come up with is

     [p for p in Partitions(5, parts_in=[3,2,1]) if len(p) == 3]

 but surely this isn't ideal.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/13072#comment:16>
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