#17191: Poset: change rank dict to rank array
-------------------------+-------------------------------------------------
       Reporter:         |        Owner:
  jmantysalo             |       Status:  positive_review
           Type:         |    Milestone:  sage-6.4
  enhancement            |   Resolution:
       Priority:  minor  |    Merged in:
      Component:         |    Reviewers:  Jori Mäntysalo
  combinatorics          |  Work issues:
       Keywords:         |       Commit:
        Authors:         |  45fc474b60ea8de4d76f4aa98c64b9b2765743fe
  Nathann Cohen          |     Stopgaps:
Report Upstream:  N/A    |
         Branch:         |
  u/ncohen/17191         |
   Dependencies:         |
-------------------------+-------------------------------------------------

Comment (by ncohen):

 Yo !

 > Ah, true. This could also start with `rank_fcn=[None]*self.order()`
 instead of `rank_fcn={}`, but the current code seems to be cleaner.

 Right again. And I could have turned the 'if x in rank_fcn' into 'if
 rank_fcn[x] is Null'... Stupid me.

 > I think this is ready for production, so I also changed milestone with
 status.

 I hope that you do not mind: I am going to add a commit in a second to do
 that properly with a list in the function too. Not very important, but
 worth doing anyway.

 Nathann

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