#12663: Partitions(-1).list() goes into infinte recursion
---------------------------------------------------+------------------------
       Reporter:  mantepse                         |         Owner:  
sage-combinat 
           Type:  defect                           |        Status:  closed     
   
       Priority:  minor                            |     Milestone:  sage-5.1   
   
      Component:  combinatorics                    |    Resolution:  fixed      
   
       Keywords:  Partitions, corner case, days38  |   Work issues:             
   
Report Upstream:  N/A                              |     Reviewers:  Tom Denton 
   
        Authors:  Travis Scrimshaw                 |     Merged in:  
sage-5.1.beta1
   Dependencies:                                   |      Stopgaps:             
   
---------------------------------------------------+------------------------
Description changed by jdemeyer:

Old description:

> Currently Partitions only checks whether its argument is an integer, but
> iterating through Partitions(-1) fails.  It now creates an empty list.
> {{{
> sage: Partitions(-1).list()
> []
> }}}

New description:

 Currently Partitions only checks whether its argument is an integer, but
 iterating through Partitions(-1) fails.  It now creates an empty list.
 {{{
 sage: Partitions(-1).list()
 []
 }}}

 '''Apply''' [attachment:12663-partitions_iter_fix-ts-rebased.patch]

--

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