#19597: General code cleanup: avoid code like x.__eq__(y)
-------------------------------------+-------------------------------------
       Reporter:  jdemeyer           |        Owner:
           Type:  enhancement        |       Status:  needs_review
       Priority:  major              |    Milestone:  sage-6.10
      Component:  misc               |   Resolution:
       Keywords:                     |    Merged in:
        Authors:  Jeroen Demeyer     |    Reviewers:
Report Upstream:  N/A                |  Work issues:
         Branch:                     |       Commit:
  u/jdemeyer/general_code_cleanup__avoid_x___eq___y_|  
b2094a8a1cedafab73db0ed7653db3112982cec4
   Dependencies:                     |     Stopgaps:
-------------------------------------+-------------------------------------

Comment (by jdemeyer):

 About `__dealloc__`: there is no `__dealloc__` method, it's a "fake"
 Cython method just like `__cinit__`. It's just not possible to call it.

 In `src/sage/combinat/crystals/tensor_product.py`, you are probably
 wondering why I still use `__lt__` instead of `<` for example. That's
 because the `__lt__` method can return `NotImplemented`. In this case, the
 output of `x < y` is not the same as `x.__lt__(y)`.

--
Ticket URL: <http://trac.sagemath.org/ticket/19597#comment:10>
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