#15184: CachedFunction file location seems problematic
-------------------------------------+-------------------------------------
       Reporter:  nbruin             |        Owner:
           Type:  defect             |       Status:  needs_review
       Priority:  major              |    Milestone:  sage-6.4
      Component:  misc               |   Resolution:
       Keywords:                     |    Merged in:
        Authors:                     |    Reviewers:
Report Upstream:  N/A                |  Work issues:
         Branch:                     |       Commit:
  u/nbruin/ticket/15184              |  41318d7bc7b13466ee14cf87b559fa860499f48f
   Dependencies:                     |     Stopgaps:
-------------------------------------+-------------------------------------

Comment (by SimonKing):

 Moreover, you will notice that you call `sage_getsourclines` twice. So,
 instead of doing
 {{{
 + _, lineno = sage_getsourcelines(f)
 + file_info = "File: %s (starting at line %d)\n"%(filename,lineno)
 }}}
 you should do
 {{{
 + file_info = "File: %s (starting at line %d)\n"%(filename,sourcelines[1])
 }}}

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