#6824: cdef in timeseries.pyx follows use of variable
---------------------+------------------------------------------------------
 Reporter:  jason    |       Owner:  was       
     Type:  defect   |      Status:  new       
 Priority:  major    |   Milestone:  sage-4.1.2
Component:  finance  |    Keywords:            
 Reviewer:           |      Author:            
   Merged:           |  
---------------------+------------------------------------------------------
 > During sage -upgrade (from a mirror)
 >
 > <snip>
 > python `which cython` --embed-positions --incref-local-binop
 -I/usr/local/src/sage-4.1/devel/sage-main -o sage/finance/time_series.c
 sage/finance/time_series.pyx
 > warning: /usr/local/src/sage-4.1/devel/sage-
 main/sage/finance/time_series.pyx:1722:24: cdef variable 'j' declared
 after it is used



 Interesting.  We have in that function:

         {{{v = [(mn + j*step, mn + (j+1)*step) for j in range(bins)]}}}

 and then a few lines later:

         {{{cdef Py_ssize_t j}}}


 That's probably a bad idea.  The cdef line should be above that first
 line.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/6824>
Sage <http://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 post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to