Ticket #6725: trac_6725-spell-check-monoids.patch

File trac_6725-spell-check-monoids.patch, 2.8 KB (added by mvngu, 4 years ago)

based on Sage 4.1.1.rc2

  • sage/monoids/free_abelian_monoid.py

    # HG changeset patch
    # User Minh Van Nguyen <nguyenminh2@gmail.com>
    # Date 1249894083 25200
    # Node ID 730de71222d11c061cb5b05d7e1152a602e78874
    # Parent  87b600f2b8d586ea15239b60720ba6a89e11e44c
    trac 6725: spell-check all modules under sage/monoids
    
    diff -r 87b600f2b8d5 -r 730de71222d1 sage/monoids/free_abelian_monoid.py
    a b  
    1515``FreeAbelianMonoid`` function. 
    1616 
    1717EXAMPLE 1: It is possible to create an abelian monoid in zero or 
    18 more variables; the syntax T(1) creates the monoid indentity 
     18more variables; the syntax T(1) creates the monoid identity 
    1919element even in the rank zero case. 
    2020 
    2121:: 
  • sage/monoids/free_monoid_element.py

    diff -r 87b600f2b8d5 -r 730de71222d1 sage/monoids/free_monoid_element.py
    a b  
    7676                        x2.append(v) 
    7777                self._element_list = x2 
    7878            else: 
    79                 self._element_list = list(x)  # make copy, so user can't accidently change monoid. 
     79                self._element_list = list(x)  # make copy, so user can't accidentally change monoid. 
    8080                     
    8181        else: 
    8282            # TODO: should have some other checks here... 
     
    259259##         <=, and >= be defined for a general poset? 
    260260##         N.B. An equal operator __equal__ may or may not 
    261261##         have been introduced to define == and != but can 
    262 ##         not be used in conjuction with __cmp__. 
     262##         not be used in conjunction with __cmp__. 
    263263##        """ 
    264264        if not isinstance(y,FreeMonoidElement) or y.parent() != self.parent(): 
    265265            #raise TypeError, "Argument y (= %s) is of the wrong type."%y 
  • sage/monoids/string_monoid.py

    diff -r 87b600f2b8d5 -r 730de71222d1 sage/monoids/string_monoid.py
    a b  
    33 
    44AUTHOR: David Kohel <kohel@maths.usyd.edu.au>, 2007-01 
    55 
    6 SAGE supports a wide range of specific free string monoids. 
     6Sage supports a wide range of specific free string monoids. 
    77""" 
    88#***************************************************************************** 
    99#       Copyright (C) 2007 David Kohel <kohel@maths.usyd.edu.au> 
     
    314314        r""" 
    315315        The binary encoding of the string S, as a binary string element.  
    316316     
    317         The default is to keep the standard ascii byte encoding, e.g.  
     317        The default is to keep the standard ASCII byte encoding, e.g.  
    318318 
    319319            A = 65 -> 01000001 
    320320            B = 66 -> 01000010 
     
    466466 
    467467    def encoding(self,S,padic=False): 
    468468        r""" 
    469         The encoding of the string S, as a hexidecimal string element. 
     469        The encoding of the string S, as a hexadecimal string element. 
    470470     
    471471        The default is to keep the standard right-to-left byte encoding, e.g.  
    472472