#9107: Nested class name mangling can be wrong in case of double nesting
------------------------------+---------------------------------------------
Reporter: hivert | Owner: nthiery
Type: defect | Status: new
Priority: major | Milestone: sage-5.0
Component: categories | Resolution:
Keywords: | Work issues:
Report Upstream: N/A | Reviewers:
Authors: | Merged in:
Dependencies: #12808 | Stopgaps:
------------------------------+---------------------------------------------
Changes (by SimonKing):
* dependencies: => #12808
Comment:
I think we should make this depend on #12808, because it cythonises nested
classes.
Here is my analysis:
1. In sage.misc.nested_class.modify_for_nested_pickling, only those
attributes of a class are (recursively) renamed that are instances of type
or of `ClassType`. However, ironically, instances of
`NestedClassMetaclass` are ignored.
2. It is verified that the name of the to-be-changed class is identical
with its name as an attribute of the calling class. But the renaming
breaks the identity.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/9107#comment:2>
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.