#10890: wrong type for the element of PartitionsInBox(h,0)
-----------------------------+----------------------------------------------
   Reporter:  mallet         |       Owner:  somebody 
       Type:  defect         |      Status:  new      
   Priority:  minor          |   Milestone:  sage-4.7 
  Component:  combinatorics  |    Keywords:  partition
     Author:                 |    Upstream:  N/A      
   Reviewer:                 |      Merged:           
Work_issues:                 |  
-----------------------------+----------------------------------------------
 sage.combinat.partition.PartitionsInBox(h, w) is the combinatorial class
 of partitions that fit in a h by w box. Therefore,
 PartitionsInBox(h,w).list() is supposed to return a list of Partitions.
 However, if h=0, it returns [[]] (a list containing a list) instead of
 [Partition([])] (a list containing a Partition).


 Example (with Sage 4.6.2 and sage-combinat):

 sage: type(PartitionsInBox(0,0)[0])
 <type 'list'>

 while we should have:
 sage: type(PartitionsInBox(0,0)[0])
 <class 'sage.combinat.partition.Partition_class'>

 I am going to add a patch in the Mercurial queue to fix this.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/10890>
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