#17175: Replace some __cmp__() by rich comparison
-------------------------------------+-------------------------------------
       Reporter:  aapitzsch          |        Owner:
           Type:  enhancement        |       Status:  needs_work
       Priority:  major              |    Milestone:  sage-6.4
      Component:  misc               |   Resolution:
       Keywords:                     |    Merged in:
        Authors:  André Apitzsch     |    Reviewers:  R. Andrew Ohana
Report Upstream:  N/A                |  Work issues:
         Branch:                     |       Commit:
  u/aapitzsch/ticket/17175           |  8e6a4890f80a9cbab620a777495dd7ac27d81d5d
   Dependencies:                     |     Stopgaps:
-------------------------------------+-------------------------------------

Comment (by aapitzsch):

 Removing {{{__ne__}}} from {{{sage.combinat.root_system.type_reducible}}}
 raises doctest errors like
 {{{
 sage -t src/sage/combinat/root_system/branching_rules.py
 **********************************************************************
 File "src/sage/combinat/root_system/branching_rules.py", line 667, in
 sage.combinat.root_system.branching_rules.branch_weyl_character
 Failed example:
     F4(0,0,1,0).branch(G2xA1,rule="miscellaneous")
 Exception raised:
     Traceback (most recent call last):
       File "/opt/sage/local/lib/python2.7/site-
 packages/sage/doctest/forker.py", line 488, in _run
         self.compile_and_execute(example, compiler, test.globs)
       File "/opt/sage/local/lib/python2.7/site-
 packages/sage/doctest/forker.py", line 851, in compile_and_execute
         exec(compiled, globs)
       File "<doctest
 sage.combinat.root_system.branching_rules.branch_weyl_character[130]>",
 line 1, in <module>
 
F4(Integer(0),Integer(0),Integer(1),Integer(0)).branch(G2xA1,rule="miscellaneous")
       File "/opt/sage/local/lib/python2.7/site-
 packages/sage/combinat/root_system/weyl_characters.py", line 1103, in
 branch
         return
 sage.combinat.root_system.branching_rules.branch_weyl_character(self,
 self.parent(), S, rule=rule)
       File "/opt/sage/local/lib/python2.7/site-
 packages/sage/combinat/root_system/branching_rules.py", line 985, in
 branch_weyl_character
         raise ValueError("rule has wrong target Cartan type")
     ValueError: rule has wrong target Cartan type
 }}}

 We should keep it for now and check again when all {{{__cmp__()}}} have
 been removed.

--
Ticket URL: <http://trac.sagemath.org/ticket/17175#comment:3>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.

Reply via email to