Ticket #5200: subsets_subwords-5200-review.patch

File subsets_subwords-5200-review.patch, 2.1 KB (added by hivert, 12 years ago)

Last review patch.

  • sage/combinat/subset.py

    # HG changeset patch
    # User Florent Hivert <Florent.Hivert@univ-rouen.fr>
    # Date 1237496230 -3600
    # Node ID 98a3f6e1b8a69b5a9ee4d5dd85d92b4b2c06e9c3
    # Parent  a3acc7ad915771ad3873332c294a429a683bfb4f
    [mq]: subsets_subwords-5200-review.patch
    
    diff -r a3acc7ad9157 -r 98a3f6e1b8a6 sage/combinat/subset.py
    a b  
    202202   
    203203    def iterator(self):
    204204        """
    205         Iterate through the subsets of s.
     205        Iterates through the subsets of s.
    206206       
    207207        EXAMPLES::
    208208       
     
    408408
    409409    def iterator(self):
    410410        """
    411         Iterate through the subsets of s of size k.
     411        Iterates through the subsets of s of size k.
    412412       
    413413        EXAMPLES::
    414414       
     
    580580       
    581581    def iterator(self):
    582582        """
    583         Iterate through the subsets of the multiset ``self._s``.  Note
     583        Iterates through the subsets of the multiset ``self._s``.  Note
    584584        that each subset is represented by a list of its elements rather than
    585585        a set since we can have multiplicities (no multiset data structure yet
    586586        in sage).
     
    610610
    611611class SubMultiset_sk(SubMultiset_s):
    612612    """
    613     The combinatorial class of all of the subsets of size k of a multiset s.
    614     Note that each subset is represented by a list of the elements rather than
    615     a set since we can have multiplicities (no multiset data structure yet in
     613    The combinatorial class of the subsets of size k of a multiset s.  Note
     614    that each subset is represented by a list of the elements rather than a
     615    set since we can have multiplicities (no multiset data structure yet in
    616616    sage).
    617617           
    618618    EXAMPLES::
     
    675675       
    676676    def iterator(self):
    677677        """
    678         Iterate through the subsets of size ``self._k`` of the multiset
     678        Iterates through the subsets of size ``self._k`` of the multiset
    679679        ``self._s``. Note that each subset is represented by a list of the
    680680        elements rather than a set since we can have multiplicities (no
    681681        multiset data structure yet in sage).