#9107: Nested class name mangling can be wrong in case of double nesting
------------------------------+---------------------------------------------
Reporter: hivert | Owner: nthiery
Type: defect | Status: needs_review
Priority: major | Milestone: sage-5.0
Component: categories | Resolution:
Keywords: | Work issues:
Report Upstream: N/A | Reviewers:
Authors: Simon King | Merged in:
Dependencies: #12808 | Stopgaps:
------------------------------+---------------------------------------------
Comment (by SimonKing):
Another problem: Source inspection does not work yet in the following
example.
{{{
sage: cython_code = [
... "from sage.structure.unique_representation import
UniqueRepresentation",
... "class A1(UniqueRepresentation):",
... " class B1(UniqueRepresentation):",
... " class C1: pass",
... " class B2:",
... " class C2: pass"]
sage: import os
sage: cython(os.linesep.join(cython_code))
sage: A1.B1.C1??
Error getting source: class A1.B1.C1 has no attribute '__class__'
Type: classobj
String Form:
_mnt_local_king__sage_temp_mpc622_6475_tmp_0_spyx_0.A1.B1.C1
Namespace: Interactive
Loaded File:
/mnt/local/king/.sage/temp/mpc622/6475/spyx/_mnt_local_king__sage_temp_mpc622_6475_tmp_0_spyx/_mnt_local_king__sage_temp_mpc622_6475_tmp_0_spyx_0.so
Source File:
/mnt/local/king/.sage/temp/mpc622/6475/spyx/_mnt_local_king__sage_temp_mpc622_6475_tmp_0_spyx/_mnt_local_king__sage_temp_mpc622_6475_tmp_0_spyx_0.so
}}}
Even #11768 does not solve the problem.
Shall that be dealt with on a different ticket? Or in one go?
Probably on a different ticket, since I just find that even source
inspection for A1 (which has a usual name) does not work...
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/9107#comment:4>
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.