#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):

 You comment
 {{{
 + #this is a rather expensive way of getting the line number, because
 + #retrieving the source requires reading the source file and in many
 + #cases this is not required (in cython it's embedded in the docstring,
 + #on code objects you'll find it in co_filename and co_firstlineno)
 + #however, this hasn't been factored out yet in sageinspect
 + #and the logic in sage_getsourcelines is rather intricate.
 }}}
 I didn't check the code yet, but I think I remember that this was
 improved. But if I am mistaken, we could fix it here, right?

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