# 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 ``FreeAbelianMonoid`` function. EXAMPLE 1: It is possible to create an abelian monoid in zero or more variables; the syntax T(1) creates the monoid indentity more variables; the syntax T(1) creates the monoid identity element even in the rank zero case. ::
• ## sage/monoids/free_monoid_element.py

diff -r 87b600f2b8d5 -r 730de71222d1 sage/monoids/free_monoid_element.py
 a x2.append(v) self._element_list = x2 else: self._element_list = list(x)  # make copy, so user can't accidently change monoid. self._element_list = list(x)  # make copy, so user can't accidentally change monoid. else: # TODO: should have some other checks here... ##         <=, and >= be defined for a general poset? ##         N.B. An equal operator __equal__ may or may not ##         have been introduced to define == and != but can ##         not be used in conjuction with __cmp__. ##         not be used in conjunction with __cmp__. ##        """ if not isinstance(y,FreeMonoidElement) or y.parent() != self.parent(): #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 AUTHOR: David Kohel , 2007-01 SAGE supports a wide range of specific free string monoids. Sage supports a wide range of specific free string monoids. """ #***************************************************************************** #       Copyright (C) 2007 David Kohel r""" The binary encoding of the string S, as a binary string element. The default is to keep the standard ascii byte encoding, e.g. The default is to keep the standard ASCII byte encoding, e.g. A = 65 -> 01000001 B = 66 -> 01000010 def encoding(self,S,padic=False): r""" The encoding of the string S, as a hexidecimal string element. The encoding of the string S, as a hexadecimal string element. The default is to keep the standard right-to-left byte encoding, e.g.