#11768: Get source code for parent/element classes of categories
-----------------------------------------+----------------------------------
Reporter: SimonKing | Owner: jason
Type: enhancement | Status: needs_review
Priority: major | Milestone: sage-5.6
Component: misc | Resolution:
Keywords: sources dynamic class | Work issues:
Report Upstream: N/A | Reviewers:
Authors: Simon King | Merged in:
Dependencies: | Stopgaps:
-----------------------------------------+----------------------------------
Comment (by SimonKing):
I don't know yet whether my patch would fix the following example:
{{{
sage: class MyParent(UniqueRepresentation, Parent):
....: class Element:
....: pass
....:
sage: P = MyParent(ZZ)
sage: P.element_class??
Type: DynamicMetaclass
Base Class: <class 'sage.structure.dynamic_class.DynamicMetaclass'>
String Form: <class '__main__.MyParent.element_class'>
Namespace: Interactive
Loaded File: /home/simon/SAGE/debug/sage-5.5.rc0/local/lib/python2.7
/site-packages/IPython/FakeModule.py
Source File:
/home/simon/SAGE/debug/sage-5.5.rc0/devel/sage/IPython/FakeModule.py
Source:
class DynamicMetaclass(type):
...
}}}
If I understand correctly, my patch ''would'' fix a corresponding example
in Cython (because it then has a source file to inspect). If my patch is
able to fix the example above then I'll use it.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11768#comment:28>
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 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.