Ticket #9370: trac_9370-module-elt-repr-third.patch

File trac_9370-module-elt-repr-third.patch, 2.9 KB (added by jhpalmieri, 10 years ago)

apply on top of other two patches

  • sage/combinat/combinatorial_algebra.py

    diff -r 766e352508db sage/combinat/combinatorial_algebra.py
    a b symmetric functions. 
    4141The important things to define are ._basis_keys which
    4242specifies the combinatorial class that indexes the basis elements,
    4343._one which specifies the identity element in the algebra, ._name
    44 which specifies the name of the algebra, ps.print_options is used to set
     44which specifies the name of the algebra, .print_options is used to set
    4545the print options for the elements, and finally a _multiply
    46 or _multiply basis method that defines the multiplication in the
     46or _multiply_basis method that defines the multiplication in the
    4747algebra.
    4848"""
    4949#*****************************************************************************
  • sage/combinat/free_module.py

    diff -r 766e352508db sage/combinat/free_module.py
    a b class CombinatorialFreeModule(UniqueRepr 
    10191019
    10201020        self._order = None
    10211021
    1022         # printing options for elements.
    1023         # (set when initializing self) and self._repr_option_bracket
    1024         # (declared to be True by default, needs to be overridden
    1025         # explicitly).
     1022        # printing options for elements (set when initializing self).
     1023        # This includes self._repr_option_bracket (kept for backwards
     1024        # compatibility, declared to be True by default, needs to be
     1025        # overridden explicitly).
    10261026        self._print_options = {}
    10271027        self._print_options['prefix'] = prefix
    10281028        # 'bracket': its default value here is None, meaning that
  • sage/misc/misc.py

    diff -r 766e352508db sage/misc/misc.py
    a b def repr_lincomb(symbols, coeffs, is_lat 
    680680    - ``symbols`` -- list of symbols
    681681    - ``coeffs`` -- list of coefficients of the symbols
    682682    - ``scalar_mult`` -- (default:'*') string representing the multiplication
    683     - `` latex_scalar_mult`` -- (default:None) None or string representing the multiplication in latex
    684                                 if None and the scalar_mult is '*': empty string '' is used
    685                                 if None and the scaler_mult is not '*': scalar_mult string is used
    686                                 otherwise: latex_scalar_mult is used
     683    - ``latex_scalar_mult`` -- (default:None) None or a string representing
     684      the multiplication in latex
     685
     686        - if None and ``scalar_mult`` is '*', the empty string '' is used
     687        - if None and ``scalar_mult`` is not '*', ``scalar_mult`` is used
     688        - otherwise: ``latex_scalar_mult`` is used
    687689
    688690    OUTPUT:
    689691
    def repr_lincomb(symbols, coeffs, is_lat 
    691693
    692694    EXAMPLES:
    693695
    694     - examples without scalar_mult or latex_scaler_mult::
     696    - examples without scalar_mult or latex_scalar_mult::
    695697
    696698        sage: repr_lincomb(['a','b','c'], [1,2,3])
    697699        'a + 2*b + 3*c'