Opened 10 years ago

Last modified 10 years ago

#14138 closed defect

some cleanup in sage.combinat.combinat — at Version 1

Reported by: Nathann Cohen Owned by: Sage Combinat CC user
Priority: major Milestone: sage-5.8
Component: combinatorics Keywords:
Cc: Nicolas M. Thiéry, fhivert, Florent Hivert, Punarbasu Purkayastha, Travis Scrimshaw Merged in:
Authors: Reviewers:
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Status badges

Description (last modified by Nathann Cohen)

Because I hate that :

sage: MultichooseNK(5,3)                                                 
Combinatorial Class -- REDEFINE ME!
   
sage: Partitions(5, min_part=0)
/home/ncohen/.Sage/local/lib/python2.7/site-packages/sage/combinat/partition.py:3764: RuntimeWarning: Currently, setting min_part=0 produces Partition objects which violate internal assumptions.  Calling methods on these objects may produce errors or WRONG results!
  warn("Currently, setting min_part=0 produces Partition objects which violate internal assumptions.  Calling methods on these objects may produce errors or WRONG results!", RuntimeWarning)
Partitions of the integer 5 satisfying constraints min_part=0

sage: Compositions(5, min_part=0)
/home/ncohen/.Sage/local/lib/python2.7/site-packages/sage/combinat/composition.py:975: RuntimeWarning: Currently, setting min_part=0 produces Composition objects which violate internal assumptions.  Calling methods on these objects may produce errors or WRONG results!
  warn("Currently, setting min_part=0 produces Composition objects which violate internal assumptions.  Calling methods on these objects may produce errors or WRONG results!", RuntimeWarning)
Compositions of the integer 5 satisfying constraints min_part=0

From the help of unordered_tuples (in the global namespace):

Warning: Wraps GAP - hence mset must be a list of objects that have string

representations that can be interpreted by the GAP interpreter. If mset consists of at all complicated Sage objects, this function does *not* do what you expect. A proper function should be written! (TODO!)

From the help of permutations_iterator (in the global namespace, with no depracation warning):

Do not use this function. It will be deprecated in future version of Sage and eventually removed. Use Permutations instead;

help of number_of_permutations (same as above) :

Change History (1)

comment:1 Changed 10 years ago by Nathann Cohen

Cc: Nicolas M. Thiéry fhivert Florent Hivert added
Description: modified (diff)
Note: See TracTickets for help on using tickets.