#11300: Add get_part method to partition.py
------------------------------+---------------------------------------------
   Reporter:  jbandlow        |          Owner:  sage-combinat     
       Type:  enhancement     |         Status:  needs_info        
   Priority:  major           |      Milestone:  sage-4.7.1        
  Component:  combinatorics   |       Keywords:  partitions, days30
Work_issues:                  |       Upstream:  N/A               
   Reviewer:  Florent Hivert  |         Author:  Jason Bandlow     
     Merged:                  |   Dependencies:                    
------------------------------+---------------------------------------------

Comment(by hivert):

 Replying to [comment:4 mhansen]:
 > The one issue with this is the following:
 >
 {{{
 > sage: p = Partition([4,3])
 > sage: type(p.get_part(0))
 > <type 'sage.rings.integer.Integer'>
 > sage: type(p.get_part(10))
 > <type 'int'>
 }}}

 That is a very good remark !

 > Is there a use case for a changeable default value?

 If yes this can be corrected by changing {{{default=0}}} to
 {{{default=Integer(0)}}}.

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