#16382: make sage_getsourcelines and sage_getfile consistent
-------------------------------------+-------------------------------------
Reporter: nbruin | Owner:
Type: defect | Status: needs_review
Priority: major | Milestone: sage-6.3
Component: misc | Resolution:
Keywords: | Merged in:
Authors: | Reviewers:
Report Upstream: N/A | Work issues:
Branch: | Commit:
u/nbruin/ticket/16382 | 31c39fa6b19982e0d189e7eef7aedc3816eb2ffc
Dependencies: | Stopgaps:
-------------------------------------+-------------------------------------
Changes (by nbruin):
* status: new => needs_review
Comment:
This commit should fix the problem for dynamic classes derived from cdef
classes. For those, the `_sage_src_lines_` methods end up in the
`__dict__` and they get bound! (probably due to a custom getattr that
doesn't distinguish between methods and `staticmethod`). In fact, since
the `doccls` value that is available at the time the closure of the
relevant method is constructed doesn't have a useful value anyway, this
behaviour is even somewhat useful: we can then look up the source on
`self.__class__` (which then does have a useful value).
--
Ticket URL: <http://trac.sagemath.org/ticket/16382#comment:5>
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.