#17013: WordDatatype_char
-------------------------+-------------------------------------------------
       Reporter:         |        Owner:
  vdelecroix             |       Status:  positive_review
           Type:         |    Milestone:  sage-6.4
  enhancement            |   Resolution:
       Priority:  major  |    Merged in:
      Component:         |    Reviewers:  Sébastien Labbé
  combinatorics          |  Work issues:
       Keywords:  words  |       Commit:
        Authors:         |  a563343267f1690d74275ad3835cdebef8512a19
  Vincent Delecroix      |     Stopgaps:
Report Upstream:  N/A    |
         Branch:         |
  u/slabbe/17013         |
   Dependencies:         |
-------------------------+-------------------------------------------------

Comment (by slabbe):

 Instead of (note that you already have defined i as a `ssize_t`):

 {{{
 #!python
 cdef ssize_t i
 for i in range(w._length-1, -1, -1):
 }}}

 Maybe the following is better and would allow to use `size_t` type?

 {{{
 #!python
 cdef size_t i
 for i from w._length > i >= 0:
 }}}

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