#15272: Bruhat posets and Bruhat graphs for parabolic subgroups of finite Weyl
groups
-------------------------------------+-------------------------------------
       Reporter:  vittucek           |        Owner:
           Type:  enhancement        |       Status:  needs_review
       Priority:  major              |    Milestone:  sage-6.2
      Component:  combinatorics      |   Resolution:
       Keywords:                     |    Merged in:
        Authors:  Vít Tuček          |    Reviewers:
Report Upstream:  N/A                |  Work issues:
         Branch:                     |       Commit:
  public/combinat/15272              |  1b1220d530e96cbfaf0927c539475327891e027d
   Dependencies:                     |     Stopgaps:
-------------------------------------+-------------------------------------

Comment (by tscrim):

 The `has_key` is being deprecated (removed?) in python3 in favor of the
 `in` syntax (which I believe is faster...?). Also I agree with Darij since
 this loop is so small, I'd pull the `side == "right"` statement outside
 as:
 {{{
 if side == "right":
     for y in g:
         r = y*x.inverse()
     if x.length() < y.length() and r in ref:
         d[x][y] = r
 else:
     for y in g:
         r = x.inverse()*y
     if x.length() < y.length() and r in ref:
         d[x][y] = r
 }}}

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